Shift the route-D page body by TeX page origin offsets
This commit is contained in:
1 parent
fb33ac6327
commit
5db7acaff2
7 files changed
+148
-17
No files matched your search
@@ -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`). 315 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 316 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
@@ -248,10 +248,13 @@ penalty-driven earlier breaks, `\topskip`, `\maxdepth` and marks.
|
||||
`Engine::layout_paged` now feeds it every document whose units are single
|
||||
vertical items (`Document::max_depth` supplies `\maxdepth`) and materialises the
|
||||
chosen fragments as hashed pages; ties go to the breakpoint closest to the page
|
||||
goal, so overfull pages take the least overfull break. Floats, insertions and
|
||||
checkpoint replay still fall back to the scrolling builder, which stays the
|
||||
default until it has a paged equivalent. Next: port those paths, then
|
||||
`\voffset`, insertion registers and the interpreted `\output`.
|
||||
goal, so overfull pages take the least overfull break. `Document::h_offset` and
|
||||
`v_offset` feed the PDF writer's `pdf::PageOrigin`, which translates the page
|
||||
body without moving the sheet; a route-D integration fixture checks the shift
|
||||
with `pdftotext -bbox`. Floats, insertions and checkpoint replay still fall back
|
||||
to the scrolling builder, which stays the default until it has a paged
|
||||
equivalent. Next: port those paths, then paper margins, held-over insertion
|
||||
material and the interpreted `\output`.
|
||||
|
||||
Acceptance: 10 page fixtures (article text, footnotes, floats, forced breaks);
|
||||
page counts identical and first/last baselines within 1pt of pdfLaTeX.
|
||||
|
||||
Reference in new issue
Block a user