Report paragraph depth to the page builder
This commit is contained in:
1 parent
bd28917f05
commit
0f4c1f85ae
8 files changed
+140
-9
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user