Assert TaggedWidth.width equals the measure, protecting the right-margin
equation tag geometry while the formula body remains approximate.
Test count is 1083.
Large-operator limits used the ordinary-base superscript gap, which could
leave N just below the sum baseline. Use a negative gap for large operators
so both limits straddle the operator, and add a unit test asserting the
subscript is below and the superscript above the base within 12pt.
Test count is 1080.
TeX ignores spaces in math mode, but parse_sequence looked for _ or ^ at the
raw next index. Source such as \alpha _{i} therefore rendered the underscore
as a literal symbol at full size. Skip math spaces after the base before
checking for scripts.
The arXiv equation now has real subscripts and superscripts instead of literal
underscores. Test count is 1078.
The fraction box added bar clearance twice to its depth, leaving extra space
below the denominator. Use the painted extent instead. Scripts now include
script space after the base, and subscripts drop by the base depth plus 2pt
rather than sitting on the baseline when the base has no depth.
Test count stays 1077.
Fraction layout scaled numerator and denominator extents by 0.7 while painting
both at the full size, underestimating the box height and depth. Use the full
extents plus the bar clearance so the display equation no longer compresses its
fraction vertically.
Test count stays 1077.
Tagged display math used the body width as its box, so the equation number sat
immediately after the formula. Add a TaggedWidth atom carrying the line
measure: the body is centred in the measure and the tag is painted at its right
edge.
The arXiv equation number now matches the TeX right-margin placement; the
formula body remains approximate. Test count stays 1077.
The amsmath extensible arrows were unknown, so their labels fell back to plain
text. The math parser now reads \xrightarrow/\xleftarrow, an optional [below]
label, and the above label, and builds nested Stack atoms around the arrow
symbol: above stacks upward, an optional below label stacks downward.
The math test compares the bare arrow with the labeled form (width/height grow)
and with the two-label form (total height plus depth grows).
\boldsymbol and \bm were unknown math commands, so a bold symbol fell back to
the default layout. Both names now select the same bold alphabet as \mathbf;
symbol-heavy arguments still use the regular symbol metrics, which is the
existing alphabet approximation.
A math test compares \boldsymbol{x} with \mathbf{x} for equal width and height.
\alpha through \omega, the uppercase Greek commands and the varepsilon /
vartheta / varrho / varsigma / varphi / varpi / varkappa variants were not in
the math command table, so a formula such as $\alpha+\beta$ painted "?" glyphs.
Map them to their Unicode code points. The math renderer already treats the
Greek ranges as math letters and sends them through the math-italic fallback,
so the formula now previews as α+β=γ with no warnings; the widths still use the
TFM fallback constant rather than per-letter cmmi metrics.
A core test pins the parsed symbols and a route-D test checks the previewed
characters.
- bundle eufm10 (TFM + Type1), add the MathFraktur face and map \mathfrak
onto it, including PDF embedding and width lookup;
- parse TeX's infix fractions (\over, \atop, \choose, \brace,
\brack, \overwithdelims, \atopwithdelims): the rest of the current
row becomes the denominator, ar records whether a rule is drawn, and the
painter no longer emits parentheses (a \frac painter bug) and only draws
the bar for \over forms;
- add MathAtom::Middle, size top-level middle delimiters with the enclosing
\left/\right group through the CMEX size classes, and paint
SizedDelimiter at its selected size instead of the base glyph;
- skip the parser's '\u{0}' math spaces before \big, \middle,
\left and the withdelims delimiters, so \big ( parses like \big(.
560 workspace tests (381 route-D unit).