Reserve textfloatsep between floats and body text

This commit is contained in:
gloamxun committed 2026-10-21 12:51:01 +08:00
1 parent 1014713ec0
commit 830e1f851b
4 files changed
+273 -24

No files matched your search

+1
View File
@@ -474,6 +474,7 @@ Route-D float placement mirrors TeX fractions:
- `Document::bottom_fraction_percent` defaults to 30 (`\bottomfraction`); a taller bottom float moves to the next page.
- `Document::top_number`, `bottom_number` and `total_number` default to TeX's 2, 1 and 12; they cap top floats, bottom floats and all floats on one page.
- `Document::float_sep` defaults to 12pt (`\floatsep`); stacked top floats or stacked bottom floats reserve that gap between each other, in full layout and after `Engine::edit`.
- `Document::text_float_sep` defaults to 20pt (`\textfloatsep`); a page that carries both floats and body text reserves one such gap between them. `Page::display_list_with_layout(page_goal, text_float_sep)` mirrors that in rendered output, while `display_list_with_goal` keeps the historic no-gap behaviour for callers without document settings.
- `Engine::edit` applies the float fractions, number limits and separations, so incremental layout matches full layout.
These glyphs are rasterized at