Thursday 11 April 2024

PlantUML: mathematics support using JLaTeXMath notation

We can create standalone JLaTeXMath formula using @startlatex/@endlatex.

latexMath.txt

@startlatex
\sum_{i=0}^{n-1} (a_i + b_i^2)
@endlatex

 

Above snippet generate below diagram.

 


You can even combine ascii math with uml diagrams using <latex> tag.

 

latexMathHelloWorld.txt

@startuml

client --> server: please solve : <latex>\sum_{i=0}^{n-1} (a_i + b_i^2)</latex>
server --> client: send the response

@enduml

 

Above snippet generate below diagram.


 

 


Previous                                                    Next                                                    Home

No comments:

Post a Comment