2024-09-24 15:44:10 +02:00
|
|
|
// apply this using:
|
2024-10-04 11:53:27 +02:00
|
|
|
// #import "../../template.typ": apply-template
|
2024-09-24 15:44:10 +02:00
|
|
|
// #show: apply-template
|
|
|
|
|
|
|
|
|
|
|
|
#let apply-template(body) = [
|
|
|
|
#set text(lang: "de")
|
|
|
|
#set page(
|
|
|
|
margin: auto,
|
2024-10-04 12:07:50 +02:00
|
|
|
paper: "a4",
|
2024-09-24 15:44:10 +02:00
|
|
|
)
|
|
|
|
#set outline(indent: 1.2em)
|
|
|
|
#let clean_numbering(..schemes) = {
|
2024-10-04 12:07:50 +02:00
|
|
|
(..nums) => {
|
|
|
|
let (section, ..subsections) = nums.pos()
|
|
|
|
let (section_scheme, ..subschemes) = schemes.pos()
|
2024-09-24 15:44:10 +02:00
|
|
|
|
2024-10-04 12:07:50 +02:00
|
|
|
if subsections.len() == 0 {
|
|
|
|
numbering(section_scheme, section)
|
|
|
|
} else if subschemes.len() == 0 {
|
|
|
|
numbering(section_scheme, ..nums.pos())
|
|
|
|
} else {
|
|
|
|
clean_numbering(..subschemes)(..subsections)
|
|
|
|
}
|
2024-09-24 15:44:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#set heading(numbering: clean_numbering("A.", "I.", "1.a."))
|
|
|
|
|
2024-10-30 21:21:54 +01:00
|
|
|
// functions for my stuff
|
|
|
|
#let title(body) = {
|
|
|
|
set align(center)
|
|
|
|
[ - #body]
|
|
|
|
}
|
|
|
|
|
2024-09-30 14:08:43 +02:00
|
|
|
// #set math.equation(numbering: "(1)", supplement: "equation")
|
2024-09-24 15:44:10 +02:00
|
|
|
|
2024-09-26 17:03:30 +02:00
|
|
|
// Customization of text elements
|
2024-09-25 17:58:09 +02:00
|
|
|
#set par(justify: true)
|
2024-09-26 17:03:30 +02:00
|
|
|
#show link: underline
|
2024-10-01 12:22:59 +02:00
|
|
|
#show link: set text(rgb("#1470da"))
|
2024-09-26 17:03:30 +02:00
|
|
|
|
|
|
|
// here are replacements for commonly used shortcuts
|
2024-10-20 15:41:29 +02:00
|
|
|
#show "z.B.": "zum Beispiel"
|
|
|
|
#show "zb": "zum Beispiel"
|
2024-10-01 07:54:53 +02:00
|
|
|
#show "vllt": "vielleicht"
|
2024-10-04 13:13:56 +02:00
|
|
|
#show "CO2": $"CO"_2$
|
2024-09-24 15:44:10 +02:00
|
|
|
|
2024-10-20 15:41:29 +02:00
|
|
|
#body // IMPORTANT: must be at the very bottom, else the body will be overwritten
|
2024-09-24 15:44:10 +02:00
|
|
|
]
|