Reduce page goal by reserved insertion space

This commit is contained in:
gloamxun committed 2026-10-23 04:25:24 +08:00
1 parent a4388942f0
commit c54a56ad36
3 files changed
+52 -8

No files matched your search

+5 -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`). 386 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 387 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -240,10 +240,10 @@ Scope:
orders), `\vsize`, `\voffset`,
`\topskip`, `\maxdepth`, `\splittopskip`, `\splitmaxdepth`;
- TeX page builder: candidate breakpoints, cost = badness + penalty, page goal
recomputation as insertions arrive, `\pagegoal`, `\pagetotal`, `\pagedepth`,
`\pagestretch`, `\pageshrink`,
`\pagestretch`, `\pagefilstretch`, `\pagefillstretch`, `\pagefilllstretch` (per-order stretch is recorded on every page fragment),
`\pageshrink`, `\pagedepth`;
recomputation as insertions arrive, `\pagegoal` (`\vsize` less the insertion
space reserved on the page), `\pagetotal`, `\pagedepth`, `\pagestretch`,
`\pagefilstretch`, `\pagefillstretch`, `\pagefilllstretch` (per-order stretch
is recorded on every page fragment), `\pageshrink`;
- marks: `\mark`, `\botmark`, `\firstmark`, `\topmark`, `\marks` (marks are
collected per page; `Engine::top_mark`/`first_mark`/`bot_mark` now carry the
TeX register semantics, `\marks` remains open);