Skip to main content

Module math

Module math 

Source
Expand description

Building math lists (TeX: The Program §1136–§1206, with e-TeX’s \middle and LuaTeX’s extensions).

A formula is read into an mlist of noads (see crate::nodes), which crate::mlist converts into an hlist when the formula ends. LuaTeX differences implemented here (established with black-box tests):

  • there is no “insufficient symbol fonts” check;
  • \mathchar, \Umathchar and math characters given by \mathchardef are accepted in horizontal mode, where they typeset the character from the text font of the family (vertical mode starts a paragraph);
  • the Missing delimiter help text has no full stop after “proceed”;
  • the \Umath… variants (\Uradical, \Uroot, \Umathaccent, \Uleft, \Uskewed, \Ustack, \Usuperscript, …) are supported with their keywords.

Structs§

MathChar
A math character: class (0–7, 8 for “math active”), family, character.

Enums§

Field
A noad field that scan_math fills.

Functions§

cramped_style
cramped_style.
delcode_parts
The parts (small family, small character, large family, large character) of an internal delimiter code, or None for −1.
denom_style
denom_style.
half
half(x) (§100): x/2 rounded, with odd values rounded towards +∞.
num_style
num_style.
sub_style
sub_style.
sup_style
sup_style.