Place bottom floats through the paged builder
This commit is contained in:
1 parent
7b9d543e49
commit
14ca3b91d9
5 files changed
+198
-34
No files matched your search
+10
-9
@@ -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`). 370 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 375 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
@@ -67,9 +67,10 @@ yet generic `fil`/`fill` glue
|
||||
implements the candidate-breakpoint cost model (badness + penalty, glue
|
||||
setting, `\topskip`, `\maxdepth`) and `Engine::layout_paged` runs it for
|
||||
documents made of box/glue/penalty/mark units, insertion classes
|
||||
(per-class limits with held-over material) and top floats (with
|
||||
`\textfloatsep` reserved above the body); bottom/in-text floats and
|
||||
incremental checkpoint replay still use the scrolling builder, and the interpreted
|
||||
(per-class limits with held-over material) and top and bottom floats
|
||||
(`\textfloatsep` above the body, `\floatsep` between stacked bottom
|
||||
floats, `\bottomfraction` cap); in-text floats still use the scrolling
|
||||
builder, and the interpreted
|
||||
`\output` subset handles `\shipout`, `\ifdim` and `\ifnum` over page
|
||||
registers such as `\pageno`, `\outputpenalty` and `\deadcycles`;
|
||||
3. `\insert` classes model `\count`/`\dimen`/`\skip` but are not TeX
|
||||
@@ -275,13 +276,13 @@ with `pdftotext -bbox`. `Document::paper_width`/`paper_height`
|
||||
page box, and the endpoints read leading
|
||||
`\hoffset`/`\voffset`/`\paperwidth`/`\paperheight` dimension assignments from
|
||||
the source. Insertion classes are placed by the
|
||||
paged builder with their limits and held-over material, and top floats are
|
||||
placed at the head of a fragment with `\textfloatsep` reserved above the body;
|
||||
bottom/in-text floats still fall back to the scrolling builder, which stays
|
||||
the default until it has a paged equivalent. Paged layouts also record the
|
||||
paged builder with their limits and held-over material, top floats are placed
|
||||
at the head of a fragment with `\textfloatsep` reserved above the body, and
|
||||
bottom floats sit at the page bottom with `\floatsep` between them and a
|
||||
`\bottomfraction` cap; in-text floats still fall back to the scrolling builder. Paged layouts also record the
|
||||
node index starting each page, so `Engine::edit` reuses the sealed prefix and
|
||||
rebuilds only the pages from the edited unit onward; insertions and interpreted
|
||||
`\output` keep the full-rebuild fallback. Next: port bottom/in-text floats and
|
||||
`\output` keep the full-rebuild fallback. Next: port in-text floats and
|
||||
paper margins, then extend the `\output` interpreter past the
|
||||
shipout/ifdim/ifnum/ifodd/ifcase subset.
|
||||
|
||||
|
||||
Reference in new issue
Block a user