Math Equations
math typesets a LaTeX equation to inline SVG via the pure-Rust RaTeX toolchain. Glyph outlines embed in the SVG, so equations render the same whether the page is opened locally or served over HTTP — no webfont dependency.
Block equations
math "…" {} (or math <<TEX … TEX) renders a centred display equation. Use a raw heredoc for backslash-heavy LaTeX. Previewed in a card:
math "E = mc^2"
math <<'TEX'
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
TEX
Its fields:
Inline math
Inside any p body or span, two inline patterns produce math. Live: the mass-energy relation
$x^2$ // → inline LaTeX (text style — flows with the prose)
$$\int x dx$$ // → display style (slightly bigger, same line)
| Pattern | Style |
|---|---|
| Text-style inline math — flows with the surrounding prose. | |
| Display-style inline math — slightly larger, still inline. |
The