Expose hsize and the page box width to the output routine

This commit is contained in:
gloamxun committed 2026-10-24 00:14:55 +08:00
1 parent 49079f7e70
commit 23956a012b
5 files changed
+56 -4

No files matched your search

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