Apply topfraction in incremental layout

This commit is contained in:
gloamxun committed 2026-10-20 23:41:31 +08:00
1 parent d81021d1a3
commit 48d10f901d
3 files changed
+68 -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`: 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.
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: The same rule is applied by `Engine::edit`, so a body unit that starts after an oversized top float stays on the next page after an incremental edit.
`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.