Split insertions at the page break and hold over the tail
This commit is contained in:
1 parent
b7b75fbff1
commit
b5ec36ae2a
4 files changed
+202
-144
No files matched your search
@@ -234,8 +234,9 @@ Scope:
|
||||
TeX register semantics, `\marks` remains open);
|
||||
- insertions: `\insert` with `\count`, `\dimen`, `\skip` per class, split
|
||||
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);
|
||||
now modelled by `InsertionClass::multiplier`, `max_height` and `skip`, and
|
||||
the fitting head stays on the anchor page with the tail held over; TeX's
|
||||
register arithmetic remains);
|
||||
- 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
|
||||
@@ -257,8 +258,8 @@ body without moving the sheet; a route-D integration fixture checks the shift
|
||||
with `pdftotext -bbox`, and the PDF endpoint reads leading `\hoffset`/`\voffset`
|
||||
dimension assignments from the source. Floats, insertions and checkpoint replay still fall back
|
||||
to the scrolling builder, which stays the default until it has a paged
|
||||
equivalent. Next: port those paths, then paper margins, held-over insertion
|
||||
material and the interpreted `\output`.
|
||||
equivalent. Next: port those paths, then paper margins and the interpreted
|
||||
`\output`.
|
||||
|
||||
Acceptance: 10 page fixtures (article text, footnotes, floats, forced breaks);
|
||||
page counts identical and first/last baselines within 1pt of pdfLaTeX.
|
||||
|
||||
+5
-1
@@ -207,6 +207,9 @@ oracle fixture is ignored.
|
||||
`Document::insertion_classes` sets a per-class page fraction; an insertion
|
||||
that would exceed the class limit ships the page and continues on the next
|
||||
one, splitting at item boundaries when the insertion itself is too tall.
|
||||
When only part of an insertion fits on the page where its anchor text ends,
|
||||
that part stays there and the remainder is held over to the next page, so
|
||||
later body text follows the held-over tail.
|
||||
`Document::insertion_skip` models TeX's `\skip\footins` and is reserved once
|
||||
before the first insertion class on a page; it defaults to zero, and
|
||||
`InsertionClass::skip` overrides it for a single insertion class.
|
||||
@@ -215,7 +218,8 @@ oracle fixture is ignored.
|
||||
insertion cost 60pt of page height. `max_height` is the `\dimen<number>`
|
||||
absolute cap. Full layout, incremental replay and the item-boundary splitter
|
||||
all use the same reserved height.
|
||||
Insertions taller than a page are split at item boundaries across pages.
|
||||
Overflowing insertions are split at item boundaries: the fitting head stays
|
||||
on the anchor page and the tail is held over to the following page.
|
||||
- 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. `VerticalItem::Insertion` material is
|
||||
|
||||
Reference in new issue
Block a user