Documentation

Equations

LaTeX typeset by KaTeX, inheriting the document's ink and size.

An Equation element holds LaTeX and is typeset by KaTeX at render time. It draws in the current colour and in em units, so it inherits the element's colour and type size and exports as vector in a PDF.

<Equation className="euler" latex="e^{i\\pi} + 1 = 0" />

Resizing

A corner scales the formula: the type size changes with the box, so the equation gets larger or smaller rather than staying put inside an emptier rectangle. A side handle moves the box the formula sits in and leaves the formula the size it is. The size is the element's own font size, so the inspector, the thumbnail, the print route and every export agree with the canvas.