yolo untested
This commit is contained in:
parent
569cd8525a
commit
33f45036de
1 changed files with 31 additions and 2 deletions
33
src/lib.typ
33
src/lib.typ
|
@ -2,7 +2,8 @@
|
||||||
// formats `body` as Departure Mono. for variable/highlighting purposes.
|
// formats `body` as Departure Mono. for variable/highlighting purposes.
|
||||||
#let sf(body) = text(font: "Departure Mono", body);
|
#let sf(body) = text(font: "Departure Mono", body);
|
||||||
|
|
||||||
#let generic(numbering: true, author: "Jade", date: datetime.today().display(), title: "Document", doc) = {
|
|
||||||
|
#let generic(numbering: true, author: "Jade", date: datetime.today().display(), title: "Document", doc, subtitle: "", coverpage: false, coverpage_footer: "", outline: false) = {
|
||||||
// Word abbreviations
|
// Word abbreviations
|
||||||
show "afg": "Aufgabe";
|
show "afg": "Aufgabe";
|
||||||
show "def": "Definition";
|
show "def": "Definition";
|
||||||
|
@ -32,6 +33,34 @@
|
||||||
author: (author),
|
author: (author),
|
||||||
)
|
)
|
||||||
|
|
||||||
doc
|
[
|
||||||
|
#if coverpage {
|
||||||
|
page(
|
||||||
|
footer: if coverpage_footer != "" {
|
||||||
|
align(
|
||||||
|
center,
|
||||||
|
text(font: "B612", size: 8pt, coverpage_footer)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
grid(
|
||||||
|
rows: 2,
|
||||||
|
columns: 1,
|
||||||
|
align(center + horizon)[
|
||||||
|
#set text(font: "Departure Mono");
|
||||||
|
#text(size: 48pt, title);
|
||||||
|
#v(0.33em);
|
||||||
|
#text(size: 24pt, subtitle);
|
||||||
|
#text(size: 18pt, fill: rgb("#666"), date)
|
||||||
|
],
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
#if outline [
|
||||||
|
#outline(indent: 2em);
|
||||||
|
#pagebreak();
|
||||||
|
]
|
||||||
|
doc
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue