Tighten the title footnote reserve

This commit is contained in:
gloamxun committed 2026-10-19 18:55:37 +08:00
1 parent 09414e1fe1
commit 6f71414d69
1 file changed
+4 -3
+4 -3
View File
@@ -1727,10 +1727,11 @@ pub(super) fn build_positioned_pages(
math_layout, math_layout,
cache, cache,
); );
// The measured note may wrap to one more line than the conservative // Keep the body goal a small margin above the measured note area; the
// estimate; reserve a full baseline of slack above the insertion area. // footnote separator still uses the original page goal.
if title_reserve > 0 { if title_reserve > 0 {
page_goal = page_goal.saturating_sub(title_reserve.saturating_add(normal_line_height)); page_goal =
page_goal.saturating_sub(title_reserve.saturating_add(millimeters_to_scaled(2.0)));
} }
let mut deferred: Vec<DeferredFloat> = Vec::new(); let mut deferred: Vec<DeferredFloat> = Vec::new();
let mut block_end_pages: HashMap<usize, usize> = HashMap::new(); let mut block_end_pages: HashMap<usize, usize> = HashMap::new();