add page and stuff setup

This commit is contained in:
Schrottkatze 2024-11-29 17:13:00 +01:00
parent 1c332e7307
commit 5d8bd2d545
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo

View file

@ -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 // Word abbreviations
show "afg": "Aufgabe"; show "afg": "Aufgabe";
show "def": "Definition"; show "def": "Definition";
@ -16,6 +16,18 @@
} }
set text(font: "B612"); 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 doc
} }