$$ block syntax.
Inline math (
$E=mc^2$) is not currently supported. Use block math for all equations.Block math
Multi-line syntax
Use double dollar signs on separate lines:Single-line syntax
For short equations, put everything on one line:Alignment
Default alignment is left. There are two syntaxes depending on whether the equation is single-line or multi-line. Single-line — use:left, :center, or :right between $$ and the content:
{align=...} as an attribute on the opening $$:
Extended attributes
Use{attrs} after $$ for additional control:
Attribute reference
| Attribute | Values | Description |
|---|---|---|
align | left, center, right | Horizontal alignment |
renderAsImage | true, false | Render as PNG image for pixel-perfect output |
spacing | before,after (e.g., 10,20) | Spacing before/after in points |
The
renderAsImage option is recommended for complex equations in PDF/DOCX exports. It ensures the math renders exactly as displayed, regardless of the viewer’s font support.