TeXDoclet ========= TeXDoclet is a Java doclet implementation that generates a LaTeX file from you Java code documentation. The doclet is based on the doclet originally created by Greg Wonderly of [C2 technologies Inc.](http://www.c2-tech.com>) and its revision by Soeren Caspersen of [XO Software](http://www.xosoftware.dk). See for more information. Build ----- mvn clean install Run --- ### From command line You have to specify that *javadoc* has to use another doclet than the default doclet by giving the following options to the *javadoc* call : javadoc -docletpath TeXDoclet.jar \ -doclet org.stfm.texdoclet.TeXDoclet \ Example : javadoc -docletpath target/TeXDoclet.jar \ -doclet org.stfm.texdoclet.TeXDoclet \ -noindex \ -tree \ -hyperref \ -texinit texdoclet_include/preamble.tex \ -imagespath ".." \ -output texdoclet_output/TeXDoclet.tex \ -title "TeXDoclet Java Documentation" \ -author "Greg Wonderly \and S\"oren Caspersen \and Stefan Marx" \ -sourcepath src/main/java \ -subpackages org.stfm.texdoclet The most important is that you specify the Java packages (option `-subpackage`) and their location in the file system (option `-sourcepath`) correctly, otherwise no output is generated (specifying `-sourcepath` alone is not sufficient). See `createDocs.sh` scripts in `/examples` subdirectory for more examples. Print help (TeXDoclet + javadoc help) : javadoc -docletpath target/TeXDoclet.jar -doclet org.stfm.texdoclet.TeXDoclet or (TeXDoclet help only) : java -jar target/TeXDoclet.jar -h ### Maven integration Alternatively you can use *TeXDoclet* as an [alternate doclet](http://maven.apache.org/plugins/maven-javadoc-plugin/examples/alternate-doclet.html) if you want to make use of the maven-javadoc-plugin. First you have to check out the *TeXDoclet* code and make a maven build (by `mvn clean install`). This installs the *TeXDoclet* artifact in your local repository. Then you can use TeXDoclet as an alternate doclet in the `pom.xml` file of any project like this : ... org.apache.maven.plugins maven-javadoc-plugin 2.9 org.stfm.texdoclet.TeXDoclet org.stfm texdoclet 0.9-SNAPSHOT src/main/java:src/test/java false apidocs_tex -tree -hyperref -output TeXDoclet.tex -createpdf -title "TeXDoclet Java Documentation" -subtitle "Created with Javadoc TeXDoclet Doclet" -author "Greg Wonderly \and S{\"o}ren Caspersen \and Stefan Marx" -subpackages org -shortinherited ... ... Calling `mvn javadoc:javadoc` creates `TeXDoclet.tex` (and `TeXDoclet.pdf`, see switch `-createpdf`) in the `target/site/apidocs/apidocs_tex` directory. See `pom.xml` for example usage and more details about how to integrate *TeXDoclet* with maven `site:site` goal. Also check out [this example maven site project documentation](http://doclet.github.com/texdoclet/site). Known issues ------------ If the `pdflatex` document compilation fails with a "TeX capacity exceeded, sorry ..." error message you better use the alternative command `lualatex` from the [LuaTeX project]. Previous versions ----------------- - The intitial project of Greg Wonderly is available here : . - Its [revision](http://egee-jra1-integration.web.cern.ch/egee-jra1-integration/repository/texdoclet/1.3/share/README.txt) by Soeren Caspersen you find here : . License ----------------- TeXDoclet is free software and available under the terms of [BSD-2-Clause](http://opensource.org/licenses/BSD-2-Clause) License. For more information see LICENSE.txt.