| Within PlantUML, you can use AsciiMath notation: or JLaTeXMath notation: Here is another example: |
You can also use
@endmath to create standalone AsciiMath formula. Or use
@endlatex to create standalone JLaTeXMath formula.
To draw those formulas, PlantUML uses two open source projects:
ASCIIMathTeXImg.js is small enough to be integrated into PlantUML standard distribution. Since JLatexMath is bigger, you have to download it separately, then unzip the 4 jar files (batik-all-1.7.jar, jlatexmath-minimal-1.0.3.jar, jlm_cyrillic.jar and jlm_greek.jar) in the same folder as PlantUML.jar.
- AsciiMath that converts AsciiMath notation to LaTeX expression;
- JLatexMath that displays mathematical formulas written in LaTeX. JLaTeXMath is the best Java library to display LaTeX code.