Is it possible to create subscript typesetting?

0 votes
asked May 13, 2021 in Question / help by Admiral Plantbar
I'd like to add LaTeX-like subscripts to sequence diagrams like $x_n$ and $x_{n + 1}$. Is this possible?

1 Answer

0 votes
answered May 13, 2021 by The-Lu (64,340 points)
 
Best answer

Hello A.,

Yes you can, with <math> or <latex> as:

@startuml
Alice -> Bob : <math>x_n</math>
Alice -> Bob : <math>x_{n + 1}</math>
@enduml

See documentation here:

Regards,
Th.

commented Jun 24, 2021 by The-Lu (64,340 points)

And without math or latex, you can just use:

@startuml
Alice -> Bob : x<sub>n</sub>
Alice -> Bob : x<sub>n + 1</sub>
@enduml

...