Honour topfraction for top floats

This commit is contained in:
gloamxun committed 2026-10-20 23:37:47 +08:00
1 parent 14a3775206
commit d81021d1a3
3 files changed
+96 -3

No files matched your search

+3 -1
View File
@@ -465,7 +465,9 @@ variant for delimiters and large display operators, and builds taller glyphs
from the font's MATH assembly parts. `\\left...\\right` target sizing follows
the assignable TeX parameters `\\delimiterfactor` (default 901) and
`\\delimitershortfall` (default 5pt), including local and global assignments.
Route-D integration can also be checked against a real TeX page: `cargo test -p texrra-tex-core --test route_d` includes `Route-D float placement also mirrors `\bottomfraction`: `Document::bottom_fraction_percent` defaults to 30, so a bottom float taller than 30% of the page moves to the following page.
Route-D integration can also be checked against a real TeX page: `cargo test -p texrra-tex-core --test route_d` includes `Route-D float placement also mirrors `\bottomfraction`: Route-D top floats follow `\topfraction` as well: `Document::top_fraction_percent` defaults to 70, so a top float taller than 70% of the page keeps the body on the next page.
`Document::bottom_fraction_percent` defaults to 30, so a bottom float taller than 30% of the page moves to the following page.
route_d_page_matches_pdftex_raster_geometry`, which renders the route-D PDF and a pdfTeX page at the same geometry, rasterizes both with `pdftoppm`, and compares ink line and edge positions. It is skipped when `pdflatex`/`pdftoppm` are unavailable.