Retarget later pages after a vsize assignment

This commit is contained in:
gloamxun committed 2026-10-24 00:28:29 +08:00
1 parent 0805f3c932
commit de84ffc979
3 files changed
+83 -12

No files matched your search

+6 -3
View File
@@ -48,7 +48,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
PDF opt-in with `?engine=route-d`). 472 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 473 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -87,8 +87,11 @@ source-level `\hyphenation{...}` exceptions and `\parshape` measures,
`\outputpenalty` and those insertion registers, `\ht255`/`\dp255`/`\wd255` expose the page
box height and depth, and the assigned values carry
over to later pages (TeX output registers are global); an assigned `\vsize`
changes later page goals for documents without insertions or floats, but
the paged builder now runs the routine page by page, so `\dimen<n>` and `\count<n>` assignments change the insertion limits and reservations of later pages; the configured `\skip<n>` reserves space above its class once per page, while an output-routine `\skip<n>` assignment still has no effect because the builder's parameters are fixed before the page loop; `\box255` content is not inspectable and the full `\output` machinery is still missing;
changes the goal of every page the routine has not seen yet (the remaining
fragments are rebuilt from the next node index; insertion material is fine
because class limits apply at assembly time), though a document that defers
bottom floats keeps its initial goal; the paged builder runs the routine
page by page, so `\dimen<n>` and `\count<n>` assignments change the insertion limits and reservations of later pages; the configured `\skip<n>` reserves space above its class once per page, while an output-routine `\skip<n>` assignment still has no effect because the builder's parameters are fixed before the page loop; `\box255` content is not inspectable and the full `\output` machinery is still missing;
4. `\halign` handles spans/omit/templates but not the full TeX column algorithm;
5. math is a compact subset without the CM math fonts (`cmmi`, `cmsy`, `cmex`),
display-math line breaking or `\mathchoice`-level styling;