Javadoc latex production

Is there a way to create a latex document from my original java documentation? I don't want to include LaTeX Elements in my documentation comments, I just want to create LaTeX files instead of HTML.

thanks

+6
source share
3 answers

Texdoclet seems to be what you need. Regarding use: like any other document .

+4
source

An alternative to Texdoclet is the ltxdoclet that I created.

I think the main difference is that it also includes the source code, not just the Javadoc comments, although you can disable it.

This is not well documented on the github site - just download the code and do ant pdfdoku for sample output ( ant latexdoku if you want only LaTeX files). (Documented in German.)

I really need to add a readme file.


Now, here is the jar file - download it somewhere, and then use

  javadoc -docletpath ltxdoclet.jar -doclet de.dclj.paul.ltxdoclet.DocletStart -help 

to view a list of available options. (It will be in German if you do not have an English locale. Assign it to "LC_ALL = en_US" or similar in bash to get the English version, or see help_en.txt if you don't know German.)

I am working on a webpage with additional documentation, but I am not sure when it will be ready.


Now we have a web page . It links the jar file as well as an example of javadocs when applied to it .

+6
source

If you don't want to rely on any doclet dependency, but rather javascript, you can simply add the following javadoc parameter:

 -header "<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>" 

and just use pure latex in your comments like \(\sum_i a_i\) or \[\sum_i a_i\]

0
source

Source: https://habr.com/ru/post/887190/


All Articles