From e1ae10f2ceb76a1fbb44d0c43367b9a885cde90e Mon Sep 17 00:00:00 2001 From: GloamXun Date: Thu, 29 Oct 2026 00:51:04 +0800 Subject: [PATCH] Document the math spacing paint gap --- docs/SCOPED_FIDELITY_GOAL.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/SCOPED_FIDELITY_GOAL.md b/docs/SCOPED_FIDELITY_GOAL.md index f570fae..10c97a0 100755 --- a/docs/SCOPED_FIDELITY_GOAL.md +++ b/docs/SCOPED_FIDELITY_GOAL.md @@ -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).