add page and stuff setup
This commit is contained in:
parent
1c332e7307
commit
5d8bd2d545
1 changed files with 13 additions and 1 deletions
14
src/lib.typ
14
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue