Defer bottom floats inside the page builder
This commit is contained in:
1 parent
fd9790cf28
commit
17638996a1
3 files changed
+145
-7
No files matched your search
@@ -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`). 459 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 461 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
@@ -254,6 +254,11 @@ body break matches pdfLaTeX. When it does not fit the remaining body space,
|
||||
the paged builder ends the current page and defers the float, while TeX
|
||||
keeps filling the page before placing the float on the next one; that
|
||||
deferral-fill case stays documented as a known approximation.
|
||||
`PageBuilder::build_with_deferred_bottom_floats` now implements TeX's
|
||||
behaviour for that case: the current page keeps filling, the float is
|
||||
carried to the next page's bottom, and a float larger than the page still
|
||||
ends the page rather than looping. The route-D service still calls `build`,
|
||||
so endpoint behaviour is unchanged until that wiring lands.
|
||||
|
||||
### P2 — Vertical list, page builder, `\output` (L2)
|
||||
|
||||
|
||||
+5
-3
@@ -266,8 +266,10 @@ oracle fixture is ignored.
|
||||
offer the page builder a legal breakpoint. The routine cannot yet
|
||||
change page goals. The paged builder places top `Float` material at the top
|
||||
of a page and bottom `Float` material at the page bottom: a late top float
|
||||
starts the next page, a bottom float that cannot fit the remaining body
|
||||
space ends the current page and is deferred to the next page's bottom
|
||||
starts the next page, a bottom float that cannot fit is deferred to the next page's
|
||||
bottom by `PageBuilder::build_with_deferred_bottom_floats`, which keeps
|
||||
filling the current page (the default `build` path still ends the page at
|
||||
the float until the service adopts the new entry point)
|
||||
(TeX instead keeps filling the current page before deferring the float,
|
||||
which remains a documented approximation), stacked bottom floats reserve `\floatsep`, and
|
||||
`\bottomfraction` caps the bottom float share, and a page whose top floats reach `\floatpagefraction` ships without body material. Route-D preview/PDF draw
|
||||
@@ -363,7 +365,7 @@ Math coverage includes fractions/roots, scripts, `\left...\right` with body-scal
|
||||
|
||||
Paragraph units carry a `ParagraphFont`; `Unit::paragraph_with_face` and `Unit::paragraph_with_style_and_face` select Roman, bold, italic, mono, or sans. The corresponding Computer Modern TFM (`cmr10`, `cmbx10`, `cmti10`, `cmbxti10`, `cmtt10`, `cmss10`) supplies advances, kerns, ligatures, and italic correction for layout, while the display list and PDF select the matching Liberation face. `Engine::edit` preserves the face when reflowing an edited paragraph.
|
||||
|
||||
The crate currently has 304 unit tests plus seven route-D integration tests and thirty-three oracle fixtures. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 459 tests (304 route-D unit, 7 route-D integration, 33 oracle, 71 v1 integration, 26 server, 4 v1 unit, 1 core unit, 13 binary units), with none ignored. v1 remains the live server path.
|
||||
The crate currently has 306 unit tests plus seven route-D integration tests and thirty-three oracle fixtures. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 461 tests (306 route-D unit, 7 route-D integration, 33 oracle, 71 v1 integration, 26 server, 4 v1 unit, 1 core unit, 13 binary units), with none ignored. v1 remains the live server path.
|
||||
|
||||
### M0 incremental demo
|
||||
|
||||
|
||||
Reference in new issue
Block a user