Reserve space for bottom floats

This commit is contained in:
gloamxun committed 2026-10-20 12:42:49 +08:00
1 parent d973b2d1a0
commit 336ca510c8
2 files changed
+88 -14

No files matched your search

+5 -4
View File
@@ -71,7 +71,7 @@ next paragraph milestones.
| --- | --- | --- |
| M0 | vertical list, page builder, checkpoint, page hash, edit demo | edit on page 2 rebuilds only page 2 |
| M1 | TeX box/glue/penalty + paragraph builder (`\par`, `\hsize`, `\parindent`) | **partial**: item stream, CMR10 metrics, pdfTeX fixture and minimum line fill; hyphenation next |
| M2 | page builder + `\output`, `\vsize`, `\topskip`, footnotes, floats | **partial**: `\vsize` page goal, `\topskip`, forced penalties, `Insertion` reserve, running `Mark`s, `OutputRoutine` hook, top `Float` queue; interpreted `\output`, bottom floats next |
| M2 | page builder + `\output`, `\vsize`, `\topskip`, footnotes, floats | **partial**: `\vsize` page goal, `\topskip`, forced penalties, `Insertion` reserve, running `Mark`s, `OutputRoutine` hook, top/bottom `Float` placement; interpreted `\output`, float pages next |
| M3 | `\halign`, `\omit`, `\span`, `\multispan`, booktabs/longtable | table width/rules match reference |
| M4 | math lists, scripts, fractions, radicals, accents, delimiters | arXiv formulas render without overlap |
| M5 | NFSS/TFM metrics, CM/Latin Modern | same line/page breaks as reference |
@@ -108,9 +108,10 @@ a single cost function.
`VerticalItem::Mark` material is collected into `Page::marks` and included
in the page hash. `OutputRoutine::shipout` runs before sealing and may
mutate each page; this models the `\output` stage in Rust rather than as
an interpreted token list, and cannot yet change page goals. `Float`
material is deferred to the top of the next page when it arrives late;
bottom placement and float-page policies are not implemented yet.
an interpreted token list, and cannot yet change page goals. Top `Float`
material is deferred to the next page when it arrives late; bottom
floats reserve height on the current page. Dedicated float pages and
`\textfraction`-style policies are not implemented yet.
- No macro state, output routine, math, fonts or PDF output in the new core yet.
- The v1 server and project API still use `src/rust_typeset` and are unchanged.