Repository navigation
render-pipeline: align short-then-tall rows fall into opened-up lineskip mode (#814) - #822
Conversation
…kip mode (#814) A short row above a row containing a `\frac` (or other tall construct) in `align`/`align*`/`gather` stayed in baselineskip mode (14.944bp gap) where pdflatex, whose `\openup\jot` also advances `\lineskiplimit`, has already fallen into lineskip mode (18.6009bp): the interline glue between these rows was laid against the page's own `\lineskiplimit` (0pt), not amsmath's opened-up one. Tall-above-short already matched (19.1876pt), since that direction gives negative candidate glue, below either limit. Folds the missing difference into the upper row's after-skip exactly when the opened-up limit -- not the page limit -- puts the pair in lineskip mode. Found during independent review: the lane's own fix applied this correction unconditionally to every `RowsEnv`, including `EqnArray`, using amsmath's `\baselineskip+\jot`/`\lineskip+\jot` constants. `eqnarray` never runs `\openup` (a separate, already-fixed issue: it gets its `\jot` from an explicit per-row `\noalign` vskip, not an opened-up lineskip threshold), so those constants don't describe its actual behavior. The lane's own test suite happened not to exercise this interaction (its base predated the eqnarray fix merging into main), so it passed by coincidence rather than by being conditioned correctly. Added an explicit `!is_eqnarray` guard; verified the existing eqnarray tests (including the already-fixed tall-then-short case) still pass unchanged with the guard in place. Verified: cargo build --release --locked clean; full flashtex-render-pipeline suite green (independently re-run on the exact published tree, on top of main's current eqnarray fix), including the 2 new align_tall_row tests and all 4 eqnarray tests (--include-ignored). Implementation-Agent: muse-spark-1.3-contributor (Muse Code, lane align-tall-row, slice 1) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet) Reviewed-by: daniel-muse-lead-2 (Claude Sonnet) Muse-Lane-Head: a03798aa08b76b08f6a6d48189b557c346adb972
|
Commander (daniel-parent): independent Opus review of Review: PR #822 (head 6095daa) — align short-then-tall rows fall into opened-up lineskip mode (#814)Independent read-only review. Oracle: pdflatex (TeX Live, Material findingsNone. Oracle verification (all values TeX pt; bp = pt/1.00375)
All PR values are within 0.0002pt (0.0002bp) of pdflatex — far inside the 0.01bp gate — The condition Corpus / baseline digestsNo perf-bench baseline re-record is needed. Alignment-bearing corpus inputs:
In every one of them the tall rows are adjacent to other tall rows (negative interline Non-blocking notes
Tests runFrom
Plus, outside the test suite: 17 pdflatex oracle documents measured with VERDICT: APPROVE |
Summary
\frac-containing (or otherwise tall) row inalign/align*/gatherstayed in baselineskip mode where pdflatex, whose\openup\jotalso advances\lineskiplimit, has already fallen into lineskip mode. Fixed by folding the missing glue into the upper row's after-skip exactly when the opened-up limit (not the page's own) puts the pair in lineskip mode.RowsEnvincludingEqnArray, using amsmath-specific constants that don't describe eqnarray's actual (never-opened-up) behavior. Added an explicit!is_eqnarrayguard — verified the existing eqnarray tests still pass with it.Produced by a supervised Muse Contributor lane (
align-tall-row), reviewed, corrected, and independently re-tested before publishing.Test plan
cargo build --release --lockedcleanflashtex-render-pipelinesuite green, independently re-run on the exact published tree (on top of main's current eqnarray fix), including the 2 newalign_tall_rowtests and all 4eqnarraytests (--include-ignored)🤖 Generated with Claude Code