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: . Standard gravity: . Avogadro constant as a symbol: .
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: . An integral: . 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:
(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{}:
. 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: . The same fraction with
\dfrac is legible inline: .
Brace-suppressed line breaks
KaTeX auto-breaks inline math after a relation, so can wrap at the =.
Wrapping the whole thing in braces suppresses it: .
A display equation, for reference
Live numbers via sci() (Intl, not KaTeX)
| call | rendered | .text |
|---|---|---|
sci(6.02e23) | 6.02 × 1023 | 6.02 × 10²³ |
sci(1e-25) | 1 × 10-25 | 1 × 10⁻²⁵ |
sci(-1.6e-19) | −1.6 × 10-19 | -1.6 × 10⁻¹⁹ |
sci(0) | 0 | 0 |
sci(6.02e23) engineering | 602 × 1021 | 602 × 10²¹ |