2024-01-02 05:03:29 +01:00
|
|
|
// would also be interesting to try out IBM Plex Mono/Sans sometime
|
|
|
|
#let atk = "Atkinson Hyperlegible"
|
|
|
|
#let fonts = (
|
|
|
|
main: (font: atk, size: 12pt),
|
|
|
|
|
|
|
|
title: (font: atk, size: 20pt),
|
|
|
|
subtitle: (font: atk, size: 10pt),
|
|
|
|
heading: (font: "Montserrat", weight: "regular"),
|
|
|
|
)
|
|
|
|
|
2024-01-01 23:34:34 +01:00
|
|
|
#let conf(
|
2024-01-02 05:03:29 +01:00
|
|
|
title: none,
|
|
|
|
subtitle: none,
|
|
|
|
doc,
|
2024-01-01 23:34:34 +01:00
|
|
|
) = {
|
2024-01-02 05:03:29 +01:00
|
|
|
set page(
|
|
|
|
numbering: "1 / 1",
|
|
|
|
header: locate(loc => {
|
|
|
|
datetime.today().display()
|
|
|
|
|
|
|
|
if counter(page).at(loc).first() > 1 {
|
|
|
|
// on all pages other than the first, the title is useful to have at hand
|
|
|
|
h(1fr)
|
|
|
|
title
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
set text(..fonts.main)
|
|
|
|
set heading(numbering: "A.1")
|
|
|
|
|
|
|
|
show heading: it => text(..fonts.heading, it)
|
|
|
|
|
|
|
|
// document title
|
|
|
|
if title != none {
|
|
|
|
align(
|
|
|
|
right,
|
|
|
|
text(..fonts.title, title)
|
|
|
|
+ v(-12pt)
|
|
|
|
+ text(..fonts.subtitle, subtitle)
|
|
|
|
)
|
2024-01-01 23:34:34 +01:00
|
|
|
|
2024-01-02 05:03:29 +01:00
|
|
|
v(0.25cm)
|
|
|
|
}
|
2024-01-01 23:34:34 +01:00
|
|
|
|
2024-01-02 05:03:29 +01:00
|
|
|
// content itself
|
2024-01-01 23:34:34 +01:00
|
|
|
doc
|
|
|
|
}
|