Report paragraph depth to the page builder

This commit is contained in:
gloamxun committed 2026-10-23 23:31:47 +08:00
1 parent bd28917f05
commit 0f4c1f85ae
8 files changed
+140 -9

No files matched your search

+2
View File
@@ -855,6 +855,8 @@ fn build_document(paragraphs: &[SourceParagraph], geometry: &PageGeometry) -> Do
})
.collect();
let mut document = Document::new(700 * SCALE, units);
// LaTeX sets \maxdepth=.5\topskip; sources may override it later.
document.max_depth = 5 * SCALE;
document.page_breaks = paragraphs
.iter()
.enumerate()