37 lines
878 B
Text
37 lines
878 B
Text
|
// apply this using:
|
||
|
// #import "../template.typ": apply-template
|
||
|
// #show: apply-template
|
||
|
|
||
|
|
||
|
#let apply-template(body) = [
|
||
|
#set text(lang: "de")
|
||
|
#set page(
|
||
|
margin: auto,
|
||
|
paper: "a4"
|
||
|
)
|
||
|
#set outline(indent: 1.2em)
|
||
|
#let clean_numbering(..schemes) = {
|
||
|
(..nums) => {
|
||
|
let (section, ..subsections) = nums.pos()
|
||
|
let (section_scheme, ..subschemes) = schemes.pos()
|
||
|
|
||
|
if subsections.len() == 0 {
|
||
|
numbering(section_scheme, section)
|
||
|
} else if subschemes.len() == 0 {
|
||
|
numbering(section_scheme, ..nums.pos())
|
||
|
}
|
||
|
else {
|
||
|
clean_numbering(..subschemes)(..subsections)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#set heading(numbering: clean_numbering("A.", "I.", "1.a."))
|
||
|
|
||
|
#set math.equation(numbering: "(1)", supplement: "equation")
|
||
|
|
||
|
#show "z.B.": text[zum Beispiel]
|
||
|
|
||
|
|
||
|
|
||
|
#body // IMPORTANT: must be at the very bottom, ekse the body will be overwritten
|
||
|
]
|