$$ 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
Control horizontal alignment with:left, :center, or :right after $$:
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.