diff --git a/src/lib.typ b/src/lib.typ index d4bc030..c954c29 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -1,4 +1,4 @@ -#let generic(numbering: true, author: "Jade", date: "", doc) = { +#let generic(numbering: true, author: "Jade", date: datetime.today().display(), title: "Document", doc) = { // Word abbreviations show "afg": "Aufgabe"; show "def": "Definition"; @@ -16,6 +16,18 @@ } set text(font: "B612"); + set page( + header: sf([ + #author /> Hausaufgabe 2#h(1fr)#date + ]), + footer: align(center, context sf([\~ #here().page() \~])) + ) + + set document( + title: title, + author: (author), + ) + doc }