Reserve insertion material at the page bottom

This commit is contained in:
gloamxun committed 2026-10-20 12:37:00 +08:00
1 parent 6af137b17e
commit 3724ab1a00
2 files changed
+106 -43

No files matched your search

+4 -2
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; `\output`/insertions next |
| M2 | page builder + `\output`, `\vsize`, `\topskip`, footnotes, floats | **partial**: `\vsize` page goal, `\topskip`, forced penalties, page-bottom `Insertion` reserve; `\output`/float placements 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 |
@@ -103,7 +103,9 @@ this needs a two-pass tolerance algorithm with an emergency overfull pass, not
a single cost function.
- Page breaking handles vertical boxes/glue, `Document::top_skip` and forced
vertical penalties (`penalty <= -10000`); positive penalties are recorded
but not yet part of page badness. There is no `\output` routine yet.
but not yet part of page badness. `VerticalItem::Insertion` material is
attached to `Page::insertions` and reserves height from the page goal.
There is no `\output` routine and no `\insert`/float wiring 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.