pagebreak for sections

Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
方而静 2025-07-06 23:42:06 +08:00
parent f5677f4449
commit 9bf231157c
Signed by: szTom
GPG Key ID: 072D999D60C6473C

View File

@ -13,10 +13,10 @@
#{
for i in range(0, toc.len()) {
pagebreak(weak: true)
let chapter = toc.at(i)
heading(chapter.title, level: 1)
for j in range(0, chapter.sections) {
pagebreak(weak: true)
include "sections/" + numbering("1A", i + 1, j + 1) + ".typ"
}
}