MathText

A TeX-spaced source sequence. It parses string children, classifies atoms, cancels unary binary operators, and inserts the appropriate glue. Use MathChoice for four style-dependent child branches.

PropertyDefaultMeaning
childrenEmptyTeX source, math elements, or an array of both.
styleInherited or "text"Math style; script styles scale once and use tight spacing.
size_indexInherited or 6TeX size declaration; selects its own text/script/scriptscript size table.
strutfalseAdd a one-em minimum line box.
klass / left / rightSequence edgesOverrides turn a nested sequence into a grouped atom.
macrosEmptyLocal map from TeX command names to replacement strings.
warnings"error"KaTeX compatibility warnings: error, warn, or ignore.
on_error"throw"Throw a typed formula error, or render a visible diagnostic.

Common font, color, and sizing properties follow Gum units. Math preserves separate logical advance, outline ink, baseline, and math-axis guides. See math authoring for supported TeX and font setup.