From 5d8bd2d545c05bede0f0cf8c98b1a76044f7f853 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 29 Nov 2024 17:13:00 +0100 Subject: [PATCH] add page and stuff setup --- src/lib.typ | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 }