Skip to main content

Module style

Module style 

Source
Expand description

TeX’s four math styles, cramping, and the propagation rules.

Style propagation is exact TeX (The TeXbook, chapter 17 / appendix G): scripts go D,T → S → SS with subscripts cramped; fraction interiors go D → T → S → SS with denominators cramped; radicands and accent bases are cramped at the current style; radical indices are set in scriptscript style unconditionally. Glyph sizes follow CM’s 10/7/5 pt family: 1.0 / 0.7 / 0.5.

style_walk is the normative propagation definition: the layout stages consume the same walk, and the style-propagation fixtures lock it.

Structs§

StyleCtx
A style with its cramping state: the full layout context TeX threads top-down.

Enums§

Style
The four math styles (cramped variants ride StyleCtx).

Functions§

style_walk
Walk node in pre-order, calling visit on every node with the style context it is laid out in. This is the normative propagation definition: