Open danyill opened 3 years ago
Hey!
Nice findings! Indeed, JLatexMath is not included by default: https://plantuml.com/ascii-math I'm a bit concerned about: https://github.com/asciidoctor/asciidoctor-diagram/issues/259 and asked Pepijn for clarification.
Regarding the warning message, I initialy thought that PlantUML was tied to Nashorn but it's not the case, see: https://github.com/plantuml/plantuml/issues/394 In short, we can use GraalVM JavaScript Engine instead of Nashorn to get rid of this warning message and be compatible with Java 15+.
I will wait to hear from Pepijn before moving forward with JLatexMath.
In absence of an upcoming feature: This is a proposal which I could also make use of.
As @danyill described the directions, I used this command to start the Kroki server and the formulas rendered correctly:
java -cp jlatexmath-minimal-1.0.3.jar:kroki.jar io.vertx.core.Launcher
The jlatexmath-minimal-1.0.3.jar is a part of the package described at the end of this official PlantUML. Also it worked with the latest full jlatexmath (1.0.7) which I downloaded with its dependencies form jar-download
hope new version add AsciiMath
I've been attempting to use AsciiMath in PlantUML using Kroki:
On kroki.io I get:
On plantuml.com I get :
Could we enable asciimath/latexmath in PlantUML?
When I download
plantuml.jar
and run this, I get much the same output as on kroki.ioInterestingly, though I receive some warnings:
I think that means the dependency: https://mvnrepository.com/artifact/org.scilab.forge/jlatexmath is required.
Modern Java is a mystery to me (my last Java was in about ~2001) but after trying:
I managed to correctly produce the diagram so I'm fairly sure this is the missing dependency.
I have not looked into why it does not work, I might have guessed we would be picking up dependencies from here where it is listed.