asciidoctor / asciidoclet

:clipboard: A Javadoc Doclet based on Asciidoctor that lets you write Javadoc in the AsciiDoc syntax.
https://github.com/asciidoctor/asciidoclet
Apache License 2.0
133 stars 40 forks source link

I can not use the latexmath macro in JavaDoc. #89

Open diguage opened 6 years ago

diguage commented 6 years ago

I want to write a mathematical formula in JavaDoc. I writed it as following

The overall run time complexity should be latexmath:[O(log(m+n))].

And, I set the attribute as following:

<additionalparam>
    --base-dir ${project.basedir}

    --attribute "stem=latexmath"

    --attribute "name=${project.name}"
    --attribute "version=${project.version}"
</additionalparam>

But, it did not generate the formula:

The overall run time complexity should be \(O(log(m+n))\).

It seems to be no import JavaScript Library.

johncarl81 commented 6 years ago

You should be able to import the library using the -r option, like so:

<additionalparam>
    ....
    -r asciidoctor-diagram
</additionalparam>

But I'm unable to get this to work successfully - I can't seem to install the ruby gem.