yuzutech / plantuml

Generate UML diagram from textual description
http://plantuml.com
Other
1 stars 2 forks source link

Math formulas using AsciiMath and JLatexMath render incorrectly #39

Open Pigmented opened 10 months ago

Pigmented commented 10 months ago

1. Previously, with the asciidoctor-diagram plugin, math formulas could render correctly in .adoc: files.

[plantuml, align="center"]
....
@startmath
d = (ct)/2
@endmath
....

0

2. However, after switching to Kroki, I encounter rendering issues in both HTML and PDF. 5

3. I attempt to replicate the formulas example from PlantUML Official Site on Kroki's Try. It appears that none of the formulas render as expected, whether using AsciiMath notation, JLaTeXMath notation, or creating standalone AsciiMath formulas.

1 1 1 2 2 2 3 3 3

4. I follow the instructions in #https://github.com/yuzutech/kroki/issues/442, and add jlatexmath-minimal-1.0.3.jar in the same folder as plantuml.jar, but the problem persists. I'm unsure how to proceed and would appreciate guidance.

TyborAUT commented 9 months ago

According to PlantUML AsciiMath doc you need all 4 files batik-all-1.7.jar, jlatexmath-minimal-1.0.3.jar, jlm_cyrillic.jar and jlm_greek.jar.