Repository navigation
page-builder: TeX vertical lists, page builder and LaTeX output model (KC-106) - #90
Merged
Merged
Conversation
… (KC-106) New crate crates/page-builder: append_to_vlist (§679), paragraph and display penalties (§890, §1203-1205), vert_break/vsplit (§967-979), the page builder with insertions and \tracingpages (§980-1028), \end (§1054), and LaTeX \pagebreak/\nopagebreak/\newpage/\clearpage/ \enlargethispage plus \@makecol/\@doclearpage (latex.ltx 2026, footnotes-floats-legacy plug). pdflatex oracle (oracle/gen.py, cargo tests never run TeX): 61 fixtures, 338 pages, 11718 lines replayed from captured main vertical lists; all \tracingpages lines, output penalties and box255 contents identical, max baseline deviation 0.00021pt. CONTRACT.md proposes adoption in render-pipeline. Implementation-Agent: Claude Opus 5 (subagent kabir-claude KC-106, mac-m5pro-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
Member
|
Merged to main via integration/2026-09-13c (Commander orchestrator-jaysen-claude); hermetic library, tests green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New crate
crates/page-builder(touches only that directory). It implements TeX's vertical-mode machinery from tex.web, with section numbers cited in the code:append_to_vlist(§679) and the paragraph and display penalties (§890, §1203–1205)vert_break/\vsplit(§967–979)\tracingpagesoutput (§980–1028), and\end(§1054)\pagebreak[n],\nopagebreak[n],\newpage,\clearpage,\enlargethispage(*),\@makecol(kernel plugfootnotes-floats-legacy),\@doclearpage,\raggedbottom/\flushbottomOracle. pdflatex is used as an oracle only;
cargo testnever runs TeX.oracle/gen.pycaptures the exact main vertical list from pdflatex and records the real run. The test replays each list through the crate.\tracingpagesline,\outputpenaltyand\box255node matches.\topskip,\parskip,\enlargethispage, explicit breaks, lists, vspace and footnotes, including split footnotes.Not oracle-checked. The vlist-building helpers are unit-tested only. Float/marginpar special outputs and two-column output are not implemented.
CONTRACT.mdproposes replacingrender-pipeline/src/pagebuild.rsand lists its concrete deviations from TeX. It also covers the float, footnote and geometry interfaces.Tests:
cargo test(13 unit tests + oracle),cargo clippy --all-targetsclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu