Notation self-test

Everything on this page renders through the real pipeline. Two rows differ deliberately from the historical HTML reference: the \dddot row now resolves via a macro, and the old \textmu row is replaced by a literal\text{µm}.

This fragment renders through the real MDX -> remark-math -> rehype-katex pipeline, so every row below is exactly what a lesson would get. It is the notation contract, executed.

Units go through \SI

Rest energy of the electron: 511keV\SI{511}{keV}. Standard gravity: 9.81m/s2\SI{9.81}{m/s^2}. Avogadro constant as a symbol: 6.022mol1\SI{6.022}{mol^{-1}}.

Because writing a unit means typing \SI, a bare italic unit is not a mistake you can make by accident.

The differential is \dd

A derivative: dydx{\dfrac{\dd y}{\dd x}}. An integral: f(x)dx\int f(x)\,\dd x. The upright-vs-italic differential decision lives in one macro, not in prose.

\dddot works via the macro

KaTeX ships \dot and \ddot but not \dddot. The macro supplies it: x\dddot{x} (jerk, Newton notation). Past two dots Newton’s notation is unreadable, which is the whole reason Leibniz and Lagrange exist, so this row exists to prove the macro resolves, not to endorse the notation.

Upright lowercase Greek and the micro sign

KaTeX has no upright lowercase Greek (issue #564); \mathrm{\mu} renders italic anyway. For a micrometre we use the literal Unicode micro sign inside \text{}: µm\text{µm}. It renders from the system font, not KaTeX’s, so the typography clashes slightly. That is accepted; there is no better option. (\textmu does not exist in KaTeX, which is why this row uses the literal glyph.)

Inline fractions use \dfrac

Plain inline \frac renders cramped: 12mv2\frac{1}{2}mv^2. The same fraction with \dfrac is legible inline: 12mv2{\dfrac{1}{2}mv^2}.

Brace-suppressed line breaks

KaTeX auto-breaks inline math after a relation, so F=maF = ma can wrap at the =. Wrapping the whole thing in braces suppresses it: F=ma{F = ma}.

A display equation, for reference

E2=(pc)2+(mc2)2E^2 = (pc)^2 + \left(m c^2\right)^2

Live numbers via sci() (Intl, not KaTeX)

callrendered.text
sci(6.02e23)6.02 × 10236.02 × 10²³
sci(1e-25)1 × 10-251 × 10⁻²⁵
sci(-1.6e-19)1.6 × 10-19-1.6 × 10⁻¹⁹
sci(0)00
sci(6.02e23) engineering602 × 1021602 × 10²¹