This commit is contained in:
2023-05-11 11:59:37 +02:00
parent fcc78d0c77
commit 082267411e
12 changed files with 196 additions and 15 deletions
+18 -8
View File
@@ -60,14 +60,12 @@
if nums.pos().len() >= 4 {
none
} else {
nums.pos().map(str).join(".") + " "
nums.pos().map(str).join(".")
}
})
show heading.where(level: 1): it => {
set text(size: 11pt, weight: "regular")
align(right, {
pagebreak();
v(100pt)
if it.numbering != none {
text(size: 50pt, weight: "bold")[Chapter ]
@@ -76,11 +74,7 @@
}
v(50pt)
text(it.body, size: 40pt, weight: "bold")
if it.numbering != none {
pagebreak()
} else {
v(40pt)
}
v(40pt)
})
}
@@ -89,3 +83,19 @@
doc
}
#let beforeChapter = () => {
pagebreak()
locate(loc => {
// This is not fully working but I don't know how to do better
if calc.rem(loc.position().page, 2) == 0 {
pagebreak()
}
})
}
#let afterNumberedChapter = () => {
pagebreak()
}