init
This commit is contained in:
commit
9e7476d81d
9 changed files with 245 additions and 0 deletions
37
template.typ
Normal file
37
template.typ
Normal file
|
@ -0,0 +1,37 @@
|
|||
// 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
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue