Place top floats on the page they appear on

This commit is contained in:
gloamxun committed 2026-10-23 23:15:56 +08:00
1 parent a78e0c1d0d
commit db1cc98338
6 files changed
+101 -21

No files matched your search

+6 -5
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`). 451 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 452 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -306,13 +306,14 @@ interpreter past the shipout/ifdim/ifnum/ifodd/ifcase subset.
Acceptance: 10 page fixtures (article text, footnotes, floats, forced breaks);
page counts identical and first/last baselines within 1pt of pdfLaTeX.
Progress: eight page fixtures are wired (single-line paragraphs, `\parskip=6pt`
Progress: nine page fixtures are wired (single-line paragraphs, `\parskip=6pt`
spacing, multi-line paragraphs split across pages, a 300pt `\textheight`, a
30pt `\topskip`, `\newpage` forced breaks, stretchy `\vskip` glue between
paragraphs, and `\footnotetext` insertions reserved at the page bottom); each
paragraphs, `\footnotetext` insertions reserved at the page bottom, and a
`[t]` float that reserves its height plus `\textfloatsep` on its own page); each
asserts the same page count and the same per-page body text as pdfLaTeX, with
footnote text excluded from the body comparison. Floats are the remaining
page-fixture gap because route-D's source mapping does not raise them yet.
footnote text excluded from the body comparison. Route-D's source mapping still
does not raise LaTeX floats, so the float fixture drives `Engine` directly.
### P3 — `\halign` / `\valign` (L2)