Apply the insertion count multiplier to page space

This commit is contained in:
gloamxun committed 2026-10-23 01:51:19 +08:00
1 parent 169119a48d
commit fb33ac6327
4 files changed
+153 -20

No files matched your search

+6 -3
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`). 313 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 315 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -67,7 +67,8 @@ Known gaps, in dependency order:
`Engine::layout_paged` runs it for documents made of single-item units, but
floats, insertions and incremental checkpoint replay still use the scrolling
builder, and an interpreted `\output` is absent;
3. `\insert` classes are data structures, not TeX registers and an output
3. `\insert` classes model `\count`/`\dimen`/`\skip` but are not TeX
registers addressed by number, and there is still no interpreted output
routine;
4. `\halign` handles spans/omit/templates but not the full TeX column algorithm;
5. math is a compact subset without the CM math fonts (`cmmi`, `cmsy`, `cmex`),
@@ -229,7 +230,9 @@ Scope:
`\pageshrink`, `\pagedepth`;
- marks: `\mark`, `\botmark`, `\firstmark`, `\topmark`, `\marks`;
- insertions: `\insert` with `\count`, `\dimen`, `\skip` per class, split
insertions, held-over material, `\footins` defaults;
insertions, held-over material, `\footins` defaults (the three registers are
now modelled by `InsertionClass::multiplier`, `max_height` and `skip`; TeX's
register arithmetic and held-over bookkeeping remain);
- output: `\output` as an interpreted token list, `\box255`, `\shipout`,
`\outputpenalty`, `\deadcycles`, page display list assembly;
- floats: TeX-compatible policy module used by the default output routine