Document the math spacing paint gap

This commit is contained in:
gloamxun committed 2026-10-29 00:51:04 +08:00
1 parent bf4e758fba
commit e1ae10f2ce
1 file changed
+16
+16
View File
@@ -250,3 +250,19 @@ A trial that added CMMI Greek widths and painted `VerticalItem::Math` with
(TeX 223.2 pt) and introduced visible `α (t)` gaps. It was reverted. A correct
fix must move layout and paint onto the same CMMI advance/spacing model; merely
swapping the metric source is not safe.
## Math spacing paint mismatch
`layout_math` adds TeX's inter-atom class spacing to the row width, but
`render::paint_math` for `MathAtom::Row` advances only by child widths. A trial
that painted the same class spacing exposed a second problem: the parser turns
plain `(...)` into `MathAtom::Delimited` (class Inner), so `ξ(t)` receives a
thin space it must not have. The trial produced visibly over-spaced formulas
and was reverted.
A correct math pass must fix both:
1. paint and layout must use the same spacing,
2. plain parentheses must be Open/Close atoms (Inner only for `\left...\right`
and similar delimited groups).