Compiling Mermaid in Latex #4766
Replies: 2 comments
-
\begin{mermaid}
%% your mermaid diagram here
\end{mermaid}
But, to be honest, if you're doing any complicated LaTeX project, you're probably using %.pdf: %.mermaid
npx -p @mermaid-js/mermaid-cli mmdc --output $@ --input $< Then, you can just run |
Beta Was this translation helpful? Give feedback.
-
There is any way to generate latex code from a mermaid diagram? I mean a direct way of compiling it. It would be rather useful to have one.
At the moment, I just generate an svg and add it as a picture.
Beta Was this translation helpful? Give feedback.
All reactions