ltmermaid

Embed Mermaid diagrams in LaTeX

Version:
1.0a
Copyright:
Ryoya Ando
License:
lppl1.3c
Packaged on:
04/29/2026 11:08:15
Number of files:
2
Size on disk:
14.29 kB

Embed Mermaid diagrams in LaTeX. Diagram sources are written to disk, and the Mermaid CLI (mmdc) renders vector PDFs, which are then included using \includegraphics. mermaid.sty is the implementation to be used with pdfLaTeX/XeLaTeX/upLaTeX/LuaLaTeX, etc. It invokes the Mermaid CLI via the shellesc package (or directly via \write18). No Lua interpreter is required. ltmermaid.sty is an implementation dedicated to LuaLaTeX that provides the same macros (the Renderer option, \Mermaid... macros, and the mermaid environment) as mermaid.sty. The CLI is invoked via Lua's os.execute.