Repository navigation
render-pipeline: report's titlepage abstract is a page of its own (#738 follow-up) - #741
Conversation
What changed:
`\end{<list>}` is `\@endparenv`'s `\addvspace\@topsepadd` and the
`\begin{<list>}` beside it is `\@trivlist`'s `\addvspace\@topsep`. Both are
`\addvspace`, so they keep the larger natural skip; the pipeline summed them.
`\@endparenv` also leaves TeX in vertical mode, so the second `\begin` is read
in vertical mode and takes `\partopsep` with no blank line in between; the
pipeline read it as horizontal mode and dropped `\partopsep`.
At 10pt that made a list/list boundary 10pt + 8pt = 18pt where pdflatex puts
max(10pt, 10pt) = 10pt. Every list after the first sat 8pt low and the error
grew 6pt at each further boundary (4 adjacent lists: +7.971, +13.948,
+19.925 bp).
The environment never mattered: `itemize`, `enumerate` and `description` are
all `\list` with `\@listI`'s skips, and `list_seps_from` does not branch on the
name for vertical spacing. #706 saw only `itemize` match because `itemize` came
first in its fixture.
New `tests/adjacent_list_skips.rs` pins the adjacency coverage #705's oracle
left out: all six orderings of the three environments, all nine ordered pairs,
four of a kind and a mixed chain of four, plus the `\topsep`-only vs
`\topsep`+`\partopsep` pair that separates the two lengths.
What was run:
cargo test -p render-pipeline --test adjacent_list_skips
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
same test on unfixed origin/main (dbe3cac), to show it catches the bug:
test result: FAILED. 1 passed; 3 failed; 0 ignored; 0 measured
ied: bravo: 164.653 bp, pdflatex 156.682 bp (+7.970)
28-document pdflatex sweep (MacTeX 2026, PyMuPDF glyph origins), engine vs
pdflatex: worst |dy| = 0.0001 bp, worst |dx| = 0.0379 bp, all within 0.5 bp.
Next step:
Full `cargo test -p render-pipeline` diffed against origin/main for regressions.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…two (#712 follow-up) What changed: #712 fixed the list-to-list boundary. Neither half of that fix was about lists: `\@endparenv` is what every `\endtrivlist` ends with, and article.cls builds `center`/`flushleft`/`flushright` as `\trivlist \centering \item\relax`, `quote`/`quotation`/`verse` as `\list{}{...}\item\relax`, and amsthm builds a theorem as a `\trivlist`. Measured against pdflatex, three boundaries were off: * `\end{<list>}` then `\begin{center|quote|quotation|verse|<theorem>}` summed the list's closing `\@topsepadd` onto the environment's opening `\@topsep`: 10pt + 8pt = 18pt where pdflatex puts max(10, 10) = 10pt, +7.971 bp; * `\end{<theorem>}` then any `\trivlist` environment, and every pair the pipeline reads as one `ParaStyle` run (`center`/`center`, `quote`/`verse`, ...), was read in horizontal mode and dropped `\partopsep`: -1.992 bp; * both accumulated. Six `center`s drifted -1.992/-3.985/-5.978/-7.970/-9.963 bp; alternating `center`/`itemize` drifted +5.978/+3.985/+9.963/+7.970 bp. `gap_has_trivlist_end` extends #712's "the previous `\end` left vertical mode" test from the four `LIST_ENVS` to every `\trivlist`-derived environment, and feeds both the list `\begin`'s `list_vmode` and the styled `\begin`'s `EnvOpen::vmode`. In `typeset`, the environment's own opening `\addvspace` now resolves against the `\lastskip` that `addvspace_before` already raised, instead of being added on top of it -- `\@xaddvskip` keeps the larger skip whole, so its flex comes with it and the other's does not. An amsthm theorem is the one case that legitimately steps by `\topsep` alone: `\@thm` assigns `\@topsep`/`\@topsepadd` from `\thm@preskip`/`\thm@postskip`, so it never takes `\partopsep`. Two adjacent theorems stay 19.925 bp apart and that is pinned, so this fix does not sweep them up. Pipeline-only, as #706/#712 were: nothing under vendor/ changed, no re-pin. What was run: cargo test --test vmode_boundary_skips test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out the same test on the unfixed base (6763a09, #712 head): test result: FAILED. 2 passed; 4 failed; 0 ignored; 0 measured thm -> itemize (adjacent): bravo: 154.690 bp, pdflatex 156.682 bp (-1.993) itemize -> center: bravo: 164.653 bp, pdflatex 156.682 bp (+7.970) center -> center: bravo: 154.690 bp, pdflatex 156.682 bp (-1.993) ["center" x6]: bravo: 154.690 bp, pdflatex 156.682 bp (-1.993) cargo test --no-fail-fast, this branch: 479 passed; 13 failed cargo test --no-fail-fast, base 6763a09: 473 passed; 13 failed same 13 names both sides (frame_env, letter_class_geometry x5, uline x2, underline_sout x3, xcolor_oracle x2); +6 passed is this commit's new test. 0 new failures. hw2_sets_three_pages_with_the_reference_breaks ... ok pdflatex oracle: MacTeX 2026 pdfTeX 1.40, 10pt T1 Latin Modern, PyMuPDF glyph origins; 101 probe documents (pairs both directions with and without a blank line, six-deep chains, solo/paragraph/blank-line controls). Next step: None; the boundary is measured in both directions and the chains are flat. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…722 follow-up) What changed: #722 closed the \trivlist boundary for center/flushleft/flushright/quote/ quotation/verse and every \newtheorem, and left two gaps open on purpose: `verbatim` and `abstract` are \trivlist-derived too but were never measured, so they were deliberately not added to TRIVLIST_ENVS; and only the 10 pt base size was swept. Both are now measured, over 918 probe documents against pdflatex at 10/11/12 pt. Three of the four things a "they're all trivlists" guess would have predicted were already right; the two real bugs differ: * verbatim diverged only where the pipeline reads the pair as one ParaStyle run. \@verbatim is `\trivlist \item\relax ...` and \endverbatim is \endtrivlist, so \end{verbatim} leaves vertical mode and the next \begin takes \partopsep: verbatim/verbatim and verbatim/flushleft were short by exactly that, -1.992 bp at 10 pt and -2.989 bp at 11 and 12 pt, accumulating to -9.963 bp over six verbatims. verbatim against center/quote/quotation/verse/flushright, a theorem or any list was already right in both directions. * abstract diverged on both sides, for two different reasons. \end{abstract} is \endquotation -> \endlist -> \endtrivlist, and what followed it was short by one \partopsep (-1.992/-2.989/-0.996 bp). The other direction is not a TRIVLIST_ENVS problem: the pipeline inserts the \small \abstractname head as a block in front of the body the compiler produced, and the boundary skip the compiler had hung on that body stayed there and fired a second time below the head, so \end{itemize}\begin{abstract} was +5.305/+5.729/+6.273 bp long. \end{center}\begin{abstract} was already right, because a center's closing skip rides on its own env_close rather than on the next block. TRIVLIST_ENVS gains verbatim, verbatim* and abstract; `take_lead` moves the abstract body's leading skip to the head that now occupies its position. No boundary diverged only at 11 pt or 12 pt, so the size sweep found no third bug -- but it did find one boundary that is not size-invariant at all, which a 10 pt-only sweep would have pinned as a single rule: \end{abstract}\begin{thm} is \topsep-only at 10 pt and 11 pt but 26.401 bp at 12 pt, because the abstract's \@topsepadd was fixed inside \small (6/9/12 pt) while a theorem opens with \thm@preskip = \normalsize's \topsep (8/9/10 pt) and no \partopsep, and which \addvspace wins changes with the class option. That is pinned as its own constant. Pipeline-only, as #706/#712/#722 were: nothing under vendor/ changed, no re-pin. What was run: cargo test --test vmode_boundary_skips test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out cargo test --test abstract_env test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out cargo test --no-fail-fast, this branch: 480 passed; 13 failed (107 suites) cargo test --no-fail-fast, base 237b95f: 479 passed; 13 failed (107 suites) diffing every `test <name> ... <result>` line between the two runs gives exactly one line, the added an_abstract_shares_one_addvspace_with_the_environment_on_either_side ... ok. Same 13 failures both sides (every_line_is_where_pdflatex_put_it, letter_class_geometry x3, the_raggedleft_group_closes_no_trivlist, shared_colorbox_path_draws_border_with_content_inside, uline x2, sout/underline x4, xcolor_fixtures_match_pdflatex) -- the known adapter.rs:1308 vendor/compiler pin. 0 new failures. hw2_sets_three_pages_with_the_reference_breaks ... ok on both. pdflatex oracle: MacTeX 2026 pdfTeX 1.40, T1 Latin Modern, PyMuPDF glyph origins; 918 probe documents at the 10pt/11pt/12pt article base sizes (every ordered pair of 9 shapes x 12 partners, with and without a blank line, six-deep chains, solo/paragraph/blank-line controls), plus nine twocolumn probes. Next step: Two measured divergences are left and deliberately not fixed here, both documented at the top of tests/vmode_boundary_skips.rs: a \begin{abstract} on the line directly after body text is not recognised at all (the compiler does not break the paragraph there, so it needs a vendor/ change and a re-pin), and the twocolumn branch sets an abstract body after a list 3.985/4.483/4.981 bp low -- base and branch print byte-identical baselines for all nine twocolumn probes, so that one is untouched by this commit. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…ow-up) What changed: #728 left four things explicitly unmeasured. All four are measured now, over 1482 further probe documents against pdflatex, and nothing was added to TRIVLIST_ENVS for looking like a \trivlist. * `lstlisting` (listings) diverged twice and is *not* a \trivlist: `\lst@Init` opens no list. What it has is a `\par` and a `\vspace` at each end, and both were read as nothing. `\end{lstlisting}\begin{<trivlist>}` dropped `\partopsep` (-1.993/-2.989/-2.989 bp at 10/11/12 pt) because `\lst@DeInit`'s `\par` leaves vertical mode as `\@endparenv`'s does — a new `VMODE_END_ENVS`, deliberately kept apart from TRIVLIST_ENVS, since `\end{lstlisting}\begin{thm}` was right all along. `\end{<list>}\begin{lstlisting}` lost the whole closing `\@topsepadd` (-9.963/-11.955/-12.951) because `listings` zeroed the block's `addvspace_before` along with the `flushleft` lowering, although `\lst@Init`'s skip is a `\vspace` that adds to it rather than competing. The same after `flushleft` and `verbatim`, where the pair reads as one `ParaStyle` run and the closing skip is never materialised at all. * `Verbatim` (fancyvrb) and `alltt` are unimplemented and are left alone. The engine says so itself ("packages fancyvrb are recognised but not implemented"); measured, six `alltt` blocks land on one baseline (-21.917 bp by the second, -109.589 by the sixth at 10 pt). There is no \trivlist there to give a boundary skip to, so no test pins a number for them. * `report` and `book` measure exactly like `article` over the whole 8x8 boundary matrix at all three sizes, `lstlisting` included; `\@listI` does not differ by class. `book` differs only in its first baseline. The two class exceptions are outside a boundary and already declared: book.cls has no `abstract`, and `report`'s default `titlepage` branch sets one on a page of its own (head 317.407 bp, body 339.325, following material on the next page), which `abstractenv::Branch::TitlePage` does not set. * No boundary in this scope is size-dependent, and not by luck: both listings skips are `\vspace`s, so nothing competes for a class option to flip. Forcing `belowskip` to 4, 9 and 20 pt still measures a plain sum at all three sizes. The two-column `abstract` #728 filed is fixed rather than filed again. It was one line of #728's own argument: `\if@twocolumn`'s head is a `Block::Heading`, which has no `addvspace_before`, so `take_lead` fell out of its `let else` and left the list's `\@topsepadd` below the head to fire there (+3.985/+4.483/ +4.981 bp). `\@startsection`'s negative before-skip has already spent it above the head — pdflatex puts the head the same distance below an `itemize`, a `center`, a `verbatim`, a theorem and a plain paragraph — so it is dropped, with a real `\section*{Abstract}` in the same position as the control. The same sweep caught a regression #728 introduced: `abstract` went into TRIVLIST_ENVS unconditionally, but article.cls 386 closes the environment with `\if@twocolumn\else\endquotation\fi`, so a two-column `\end{abstract}` expands to nothing. Every two-column `\end{abstract}\begin{<trivlist>}` was one `\partopsep` long (1.992/2.989/2.988 bp) against #722, which was right. Whether that `\end` is an `\endtrivlist` is now a class-option question (`abstractenv::end_is_endtrivlist`), not a name lookup. What was run: cargo test --test vmode_boundary_skips test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.55s full crate --no-fail-fast, branch and base (a12ec1d) built identically, `test <name> ... <result>` lines diffed rather than totals: 497 lines on base, 501 on branch; 0 lines changed, 4 added, all ok: test a_lstlisting_boundary_is_the_neighbour_skip_plus_listings_own|ok test a_two_column_abstract_is_a_section_head_and_its_end_is_not_a_trivlist|ok test report_and_book_share_the_class_boundary_skips|ok test the_listings_skips_add_and_never_compete|ok 13 failures on both, all panicking at adapter.rs:1308 (stale vendor/compiler pin). every glyph of all 22 renderable fixtures under fixtures/real-world/ (HW1 and HW2 included), base vs branch: 15567 lines, 0 differences. listings-manual is the 23rd and panics at adapter.rs:1308 on both. probe sweeps against /Library/TeX/texbin/pdflatex with PyMuPDF glyph origins, 0.5 bp gate: 531 package documents, 891 class documents, 60 two-column documents; every remaining divergence involves only `alltt` or `Verbatim`, or `report`'s titlepage `abstract`. Next step: File report's `titlepage` abstract (204.560/205.624/209.875 bp plus a lost page break) and the `alltt`/`fancyvrb` gap as their own issues; neither is a boundary skip. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
… follow-up)
What changed:
`report`'s default `abstract` is not the one-column environment with a
`\small` head and a `quotation` body. `\if@titlepage` picks a different
one (report.cls 441-450): `\titlepage \null\vfil`, a `\normalsize`
centred `\bfseries` head, ordinary full-measure paragraphs, then
`\par\vfil\null\endtitlepage`. `abstractenv::Branch::TitlePage` declared
it and set nothing, so the head was missing, the body sat where the
compiler's plain text put it -- 200.575 / 201.107 / 205.059 bp above
pdflatex at 10/11/12 pt -- and the page break on each side was gone, so
the material after `\end{abstract}` shared the page.
It is now set, position and page break together:
* `abstractenv` inserts the `\normalsize` centred head and strips the
body's list trappings, leaving the first paragraph unindented
(`\@doendpe` after `\end{center}`).
* `adapter::Doc::abstract_pages` carries the block range, recomputed from
block spans after `listings::apply` rather than remembered across it.
* `typeset::build` supplies the `titlepage` environment around it: the
`\null`s, `\thispagestyle{empty}`, `\setcounter{page}\@ne` on each side
and the `\newpage` at each end. The two `\vfil`s and `\newpage`'s third
share the page's slack, resolved into a rigid skip from the page's own
natural height -- the same way `TitleForm::Page` already resolves the
`titlepage` `\maketitle`, the page builder having no stretchable
vertical glue.
Two-column `titlepage` documents are deliberately not set: `\titlepage`
opens `\onecolumn`, and setting the abstract in the column this pipeline
finds would be worse than the honest warning it keeps. `book`, which
defines no `abstract` at all, is untouched and still warns.
What was run:
cargo test --test report_titlepage_abstract
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
cargo test --test abstract_env
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s
cargo test --test vmode_boundary_skips
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.35s
Next step: full-crate --no-fail-fast on branch and base, result lines diffed.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
What changed: Cosmetic only: the `\vfil` distribution indexed through a `Vec` built per abstract page. An array and a `take` say the same thing, and name why the count can be one -- an abstract that set no body block at all leaves the two `\vfil`s as one glue. What was run: cargo test --test report_titlepage_abstract test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Next step: full-crate --no-fail-fast on this tree, result lines diffed against base 54bfdd9. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
d-q222
left a comment
There was a problem hiding this comment.
Independent verification — VERIFIED
Third-round review lane. Fetched refs/review/pr-741 = d78aaac3, own worktree, CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-vr3-741, CARGO_BUILD_JOBS=4. Base for the before/after is 54bfdd98 (#738's head), confirmed as the branch point: git log --oneline 54bfdd98..refs/review/pr-741 = 237cc4a0, d78aaac3.
1. The page-count claim, against pdflatex directly (not against the pipeline)
The concern this was asked to settle is that a spacing-only fix leaves pagination wrong while still producing plausible first-baseline numbers. So I ran the oracle myself on the PR's own probe, not on the pipeline:
$ /Library/TeX/texbin/pdflatex -interaction=batchmode probe.tex
$ /Library/TeX/texbin/pdflatex -interaction=batchmode probe_mt.tex
$ python3 -c "...PyMuPDF span origins..."
probe.pdf pages= 2
page 0 'Abstract' origin 283.706 313.422 size 9.963
page 0 'Body' origin 133.768 335.34 size 9.963
page 0 'set' origin 133.768 347.295 size 9.963
page 1 'AFTERWARDS' origin 148.712 134.765 size 9.963
probe_mt.pdf pages= 3
page 0 'March' origin 266.281 409.729 size 11.955
page 1 'Abstract' origin 283.706 313.422 size 9.963
page 1 'Body' origin 133.768 335.34 size 9.963
page 1 'set' origin 133.768 347.295 size 9.963
page 2 'AFTERWARDS' origin 148.712 134.765 size 9.963
Every number in the PR's 10 pt row is pdflatex's own: head 313.422, body 335.340, second line 347.295, the paragraph after \end{abstract} on page 2 at 134.765, the \maketitle date at 409.729. Two pages without \maketitle, three with it, and no blank page between the title page and the abstract page — the \maketitle probe's three pages are title / abstract / body, exactly as claimed.
2. On the branch
$ cd crates/render-pipeline && cargo test --test report_titlepage_abstract
running 8 tests
test a_two_column_titlepage_abstract_keeps_the_compiler_warning ... ok
test the_head_is_normalsize_and_the_body_is_the_full_measure ... ok
test a_two_sided_titlepage_abstract_keeps_its_page_number ... ok
test book_has_no_abstract_environment ... ok
test maketitle_and_an_abstract_are_two_title_pages ... ok
test the_titlepage_abstract_is_a_page_of_its_own ... ok
test the_article_titlepage_option_is_the_same_environment ... ok
test notitlepage_keeps_the_small_head_and_the_quotation ... ok
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
3. "The head was not set at all" and "the page break was missing" — checked on the base, not taken on trust
Worktree at 54bfdd98, this PR's tests/report_titlepage_abstract.rs copied in, nothing else changed:
$ cargo test --test report_titlepage_abstract --no-fail-fast
---- the_titlepage_abstract_is_a_page_of_its_own stdout ----
panicked at tests/report_titlepage_abstract.rs:155:9:
assertion `left == right` failed: 10pt: the abstract has a page of its own and the material after it the next one
left: 1
right: 2
---- the_head_is_normalsize_and_the_body_is_the_full_measure stdout ----
panicked at tests/report_titlepage_abstract.rs:105:28:
no word "Abstract" in ["Body", "of", "the", "abstract,", ... "AFTERWARDS", "the", "following", "material.", "1"]
---- maketitle_and_an_abstract_are_two_title_pages stdout ----
panicked at tests/report_titlepage_abstract.rs:257:5:
assertion `left == right` failed: title page, abstract page, body
left: 2
right: 3
---- a_two_sided_titlepage_abstract_keeps_its_page_number stdout ----
left: 1
right: 2
test result: FAILED. 3 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
Both halves of the headline are literally true, and neither is a restatement of the other:
no word "Abstract"— the head is genuinely absent from the before display list, not merely mispositioned.abstractenv::Branch::TitlePageset nothing.left: 1, right: 2— the page break really was missing, and the\maketitlecase was 2 pages before against pdflatex's 3. This is the half a baseline-only check would have missed.
4. The deliberate non-fix is genuinely pinned
tests/report_titlepage_abstract.rs:288 a_two_column_titlepage_abstract_keeps_the_compiler_warning passes on both base and branch, which is the right shape for a pin: it is a standing regression guard, not a new behaviour. It asserts the positive thing, not just absence — abstract_unimplemented(&l) requires the compiler diagnostic containing 'abstract' is not implemented to still be emitted (:96), and then !l.words.iter().any(|w| w.text == "Abstract") requires no head was set. A future change that silently approximated the two-column case in the column it found would fail this test.
5. The HW1/HW2 control, re-run with my own harness
I did not reuse the PR's harness. Built flashtex-render --release on base and on branch, rendered every fixture under fixtures/real-world/ with --tex <the dir's .tex> --v2 <out.json>, and extracted (fixture, page, text, font_id, font_size, first glyph origin_x, first glyph baseline_y, glyph count) for every kind: glyph_run item:
$ python3 extract741.py runs-base base-runs.txt → 15689 glyph-run lines from 22 fixtures
$ python3 extract741.py runs-branch branch-runs.txt → 15689 glyph-run lines from 22 fixtures
$ diff base-runs.txt branch-runs.txt | wc -l
0
22 fixtures (hw1 669 runs, hw2 654), 0 differences. Substance confirmed. My line count is 15,689 against the PR's 15,545 — that is my harness's field set, not a discrepancy in the result.
Findings
- Nit,
docs/PR body only. The PR says "letterfails to render on both, unchanged." In my harness it does not fail:flashtex-render --tex fixtures/real-world/letter/main.texexits 0 and emits 231 glyph runs, identical on both sides, with twowarning[unsupported_block]diagnostics for\opening/\closing. The conclusion (unchanged either way) holds; the word "fails" describes theletter_class_geometryoracle tests, not the renderer, and reads as broader than it is. - The 13
adapter.rsfailures are the known stale-vendor/compilerset and are not this PR's. Worth repeating for anyone re-checking: they aredebug_assert-driven and disappear under--release, so a green release run is not evidence of their absence.
No changes requested.
— independently verified by daniel-parent's review lane
|
Commander independent review (a fresh Codex gpt-5.6-luna max review, given only the linked issue and the diff) plus Commander triage. The full reviewer output is quoted below the triage. Blocking:
Follow-ups, not blocking, since they are narrow and pre-existing-class: #3 empty abstract, #4 Pulled from merge batch F until the blocking items are fixed and a fresh re-review passes. #712/#722/#728/#738 stay open until this tip lands. Reviewer output
VERDICT: CHANGES REQUIRED 🤖 daniel-parent (Commander) |
…vspace (#741 review) Only the first body paragraph loses its indent and env_open; nested \noindent/list paragraphs keep what the compiler computed. The body's leading glue is split into the part before \begin{abstract} (moved or dropped with the head) and the part inside it (kept on the body). Implementation-Agent: claude-sonnet-5 subagent of daniel-parent Commit-Executor: daniel-parent Co-authored-by: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…ed onto batch I (#709) Re-derived again against current main (f0f86aa, post batch-I) rather than reusing the pre-rebase commit -- main still hasn't merged #709 itself, so hw1/hw2/lab-report/ps-calculus still carry the pre-fix digests there. Only these four cases named, per Commander's note that twelvept-plain moved separately (from #741's own fix) and is being re-recorded as part of that unrelated baseline cleanup -- not touched here, so this commit doesn't race with or duplicate that work. merge_digests.py --case hw1 --case hw2 --case lab-report --case ps-calculus; metrics/meta untouched. Implementation-Agent: muse-spark-1.3-contributor (n/a -- direct supervisor edit) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet)
Re-derived again after re-rebasing onto the re-rebased #709/#716 (current main, post batch-I). Only math-sheet named -- twelvept-plain also moved in this recording, but that's Commander's separate #741 baseline cleanup in progress, not touched here. merge_digests.py --case math-sheet; metrics/meta untouched. Implementation-Agent: muse-spark-1.3-contributor (n/a -- direct supervisor edit) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet)
…twelvept-plain in CI twelvept-plain: all digests moved with flash-tex#741 (df95d75), which fixed adjacent-list \addvspace (max, not sum; vertical mode after \@endparenv), verified by the pdflatex oracle tests in render-pipeline/tests/adjacent_list_skips.rs. Bisected: the baseline matched through flash-tex#719 and flipped at flash-tex#741. CI never caught it because the case was not in perf.yml's list; it is the only fixture with adjacent same-level lists, so it is added. tikz-heavy: export.pdf now succeeds after flash-tex#785's vendor/pdf re-pin (gs support for pgf constant alpha); qpdf --check clean, real vector paths. The baseline gains that digest (the gate never flags a digest missing from the baseline). Full-corpus gate: OUTPUT CHANGED on exactly the 10 twelvept-plain digests before; OK (549 metrics, no output change) after. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
What
Stacked on #738 (
agent/daniel-parent/trivlist-pkgs), which is stacked on #728, #722 and #712. Fixes the one thing #738 measured and deliberately left unfixed.report's defaultabstractis not the environment the pipeline was setting.\if@titlepageis tested first, and it picks a different one (report.cls 441-450):No
\small, no\vspace{-.5em}under the head, noquotation: a\normalsizecentred\bfserieshead and ordinary full-measure paragraphs, the first unindented (\@doendpeafter\end{center}).abstractenv::Branch::TitlePagedeclared it and set nothing, so the head was missing entirely and the body sat where the compiler's plain text put it. Re-measured here against/Library/TeX/texbin/pdflatex(pdfTeX 3.141592653-2.6-1.40.29, TeX Live 2026,report.clsv1.4n, letterpaper at the class's own default geometry), glyph origins via PyMuPDF:And half the error was the page break, not the distance. What places this abstract is the
titlepageenvironment around it (report.cls 498-512):\newpage \thispagestyle{empty} \setcounter{page}\@neon the way in, and\newpage— plus, one-sided,\setcounter{page}\@neagain — on the way out. So the abstract is alone on its page and the material after\end{abstract}starts the next one. Before: 1 page, with that material sharing the abstract's page. After: 2 pages, the following paragraph at 134.765 / 140.742 / 137.753 bp on page 2 — pdflatex's own numbers. With a\maketitlein front it is 3 pages on both sides (title page, abstract page, body), because a\newpageon a page that has nothing on it yet ships nothing; the date stays at 409.729 bp.The
\vfils are resolved the way this crate already resolves the other pair of them.\null\vfil ... \vfil\nullplus\newpage's own\vfilis three claimants on the page's slack, which is exactly the shape of thetitlepage\maketitle(typeset::TitleForm::Page). The page builder has no stretchable vertical glue, so — as that form already does —typeset::buildlays the abstract's own blocks out, takes(\textheight - natural) / 3(a fourth of.0001filunder\raggedbottom's\@textbottom) and puts it above the head and below the body as a rigid skip. Nothing new was invented for this; the whole point of reading the class rather than approximating is that the two\nulls turn out to matter — the first fixes the head at\topskipplus the skips rather than atmax(\topskip, head height), and the last carries the interline glue that ends the page. The.0001filis worth 0.005 bp and is visible in thetwosidecase, where\flushbottomremoves it: pdflatex puts the head at 313.428 there, not 313.423, and so does this.Three cases that had to not move, and did not.
report,notitlepage— the other environment, which render-pipeline: lstlisting is a boundary, not a \trivlist (#728 follow-up) #738 measured exact. Pinned here at all three sizes: head 134.765 / 140.742 / 137.753 at\small(8.966 / 9.963 / 10.909 bp), thequotationbody at 172.498 / 168.015 / 156.483 bp, one page. Unchanged.book—book.clsdefines noabstractat all (pdflatex stops with! LaTeX Error: Environment abstract undefined.), so nothing is set, no page is opened and the compiler's own "not implemented" warning survives. Pinned as a test rather than assumed.article— plainarticleis untouched;article[titlepage]is article.cls 367-375, which is report.cls 441-450 verbatim, and pdflatex sets it at the same baselines. It is fixed too, and pinned.What is deliberately not set. A two-column
titlepagedocument:\titlepageopens\if@twocolumn \@restonecoltrue\onecolumn, so pdflatex gives the abstract a one-column page inside a two-column document (head 313.428, body at the full 72 bp measure) and goes back to two columns after it. This pipeline has no mid-document column switch, and setting the abstract in the column it finds would be a worse answer than none — so the compiler's warning stands, and a test pins that it stands rather than leaving it to drift into a silent approximation.The block range reaches
typesetasadapter::Doc::abstract_pages, recomputed from block spans at the end ofadaptrather than remembered fromabstractenv::apply:listings::applyruns between the two and can insert blocks, so an index recorded there would not survive. Spans do.Why
#738's "Not done" named this as worth its own issue, with the measurement already taken: 204.560 / 205.624 / 209.875 bp plus a lost page break. Re-measuring it here from scratch gave -200.575 / -201.107 / -205.059 on this probe (the
\vfilcentring makes the absolute number depend on the body's own height, so a different probe gives a different offset — the structure, not the number, is what transfers), and confirmed the rest of #738's reading exactly: the head is not set at all, and the page break on each side is missing.reportis one of the three standard classes and this is its default, so an ordinary\documentclass{report}document with an abstract had everything downstream of it on the wrong page.Overlap check
abstractandtitlepage: render-pipeline: two adjacent lists share one \addvspace, not two (#706) #712, render-pipeline: every \trivlist boundary shares one \addvspace, not two (#712 follow-up) #722, render-pipeline: verbatim and abstract are \trivlist boundaries too (#722 follow-up) #728, render-pipeline: lstlisting is a boundary, not a \trivlist (#728 follow-up) #738 (this stack, same lane), render-pipeline: secnumdepth, description, \baselinestretch and run-in headings #292 (draft, sectioning), docs: kernel inventory audit (Table 1A 103 unimplemented, 1B 74 falsely-flagged, 6 untested) #361 / docs: generate the kernel command inventory audit (#361) #714 (kernel inventory docs). No open PR touchesabstractenv,typeset::build's block loop orDoc.coord.py claims: no holder forGH-REPORT-TITLEPAGE-ABSTRACT; claimed asdaniel-parent@mac-m5pro-dq222.Branch::TitlePageonorigin/mainand on render-pipeline: lstlisting is a boundary, not a \trivlist (#728 follow-up) #738's head is a barecontinue, and no test covered it.Test results
Full crate
--no-fail-faston branch and base (54bfdd98, #738's head) built identically, with the individualtest <name> ... <result>lines diffed rather than the totals:HW1/HW2: every glyph run of all 22 fixtures under
fixtures/real-world/(hw1's 681 and hw2's 684 included) rendered on base and on branch — 15545 lines, 0 differences.letterfails to render on both, unchanged. No fixture uses areport-classabstractorarticle[titlepage], so this is a control rather than a measurement.Oracle:
/Library/TeX/texbin/pdflatex, glyph origins via PyMuPDF 1.28.2, 0.5 bp gate on glyph positions.Not done
titlepagedocuments —\titlepage's\onecolumn/\twocolumnpair needs a mid-document column switch this page builder does not have. Declared (the compiler's warning stands) and pinned by a test, not approximated. pdflatex's numbers for it are in that test's doc comment for whoever takes it.\end{abstract}with body text on the very next line is still read as one paragraph with the text after it, so that text joins the abstract page. This is render-pipeline: lstlisting is a boundary, not a \trivlist (#728 follow-up) #738's already-filed compiler gap (the mirror of its\begin{abstract}case), it behaves identically on thenotitlepagebranch onmaintoday, and it needs avendor/change and a re-pin. The probe in the new test uses a blank line, as pdflatex-identical output requires either way.\@beginparpenalty\@lowpenalty/\@endparpenalty\@Mare not modelled: they only matter to a page break inside the abstract, and the environment has a page to itself.adapter.rsfailures are untouched (re-pin readiness: the compiler vendor re-pin is now one step (runbook + gated pipeline arms; fixes 13 red tests on main) #711's territory).🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz