Start chapters on a new page

This commit is contained in:
gloamxun committed 2026-10-19 14:24:50 +08:00
1 parent a798221817
commit 5a54386dee
5 files changed
+16 -6

No files matched your search

+8 -1
View File
@@ -966,7 +966,14 @@ fn chapter_headings_number_sections_and_enter_contents() {
"#;
let value = fresh_preview(source, "chapters.tex");
assert_eq!(value["status"], "ok", "{}", value["message"]);
let svg = page_svg(&value, 0);
assert!(
pages(&value).len() >= 2,
"chapters did not start on a new page: {value}"
);
let svg = (0..pages(&value).len())
.map(|index| page_svg(&value, index))
.collect::<Vec<_>>()
.join("");
for needle in [
"Contents", "First", "Chapter", "Alpha", "Beta", "Gamma", "1.1", "1.1.1", "2.1",
] {