Help with Latex implementation in draw.io desktop

428 views
Skip to first unread message

Steven Auerbach

unread,
Sep 2, 2021, 8:17:30 PM9/2/21
to diagrams.net Q&A
I'm having problems getting multi-line text and equations to align as I want them to. Is there some reference material available about how to do this in draw.io desktop?

Steven Auerbach

unread,
Sep 5, 2021, 7:18:06 PM9/5/21
to diagrams.net Q&A
Answering my own question...
To get multi-line text and equations to align as you want them to, use the \begin{align} ...\end{align} pair, and place an "&" in front of the desired alignment. For example:
$$\begin{align}
&a=\sin(\theta)\\
&b = \text{abcde}\\
&z=\sqrt{x^2+y^2}\\
c=&\text{D}\\
\end{align}$$

produces the (meaningless) equation in the attachment.
meaningless equation.png
Reply all
Reply to author
Forward
0 new messages