mirror of
https://github.com/szdytom/LADRSolutions.git
synced 2025-10-20 08:50:17 +00:00
pagebreak for sections
Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
parent
f5677f4449
commit
9bf231157c
2
main.typ
2
main.typ
@ -13,10 +13,10 @@
|
|||||||
#{
|
#{
|
||||||
|
|
||||||
for i in range(0, toc.len()) {
|
for i in range(0, toc.len()) {
|
||||||
pagebreak(weak: true)
|
|
||||||
let chapter = toc.at(i)
|
let chapter = toc.at(i)
|
||||||
heading(chapter.title, level: 1)
|
heading(chapter.title, level: 1)
|
||||||
for j in range(0, chapter.sections) {
|
for j in range(0, chapter.sections) {
|
||||||
|
pagebreak(weak: true)
|
||||||
include "sections/" + numbering("1A", i + 1, j + 1) + ".typ"
|
include "sections/" + numbering("1A", i + 1, j + 1) + ".typ"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user