2024-01-02 04:03:29 +00: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 22:34:34 +00:00
|
|
|
#let conf(
|
2024-01-02 04:03:29 +00:00
|
|
|
title: none,
|
|
|
|
subtitle: none,
|
|
|
|
doc,
|
2024-01-01 22:34:34 +00:00
|
|
|
) = {
|
2024-01-02 04:03:29 +00:00
|
|
|
set page(
|
|
|
|
numbering: "1 / 1",
|
2024-01-09 09:21:57 +00:00
|
|
|
margin: 3.25cm,
|
2024-01-02 04:03:29 +00:00
|
|
|
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)
|
2024-01-09 09:21:57 +00:00
|
|
|
show raw.where(block: true): box.with(
|
|
|
|
fill: luma(95%),
|
|
|
|
inset: 1.25em,
|
|
|
|
radius: 0.75em,
|
|
|
|
width: 45em,
|
|
|
|
)
|
|
|
|
show raw.where(block: false): box.with(
|
|
|
|
fill: luma(95%),
|
2024-01-09 10:58:42 +00:00
|
|
|
outset: (y: 0.25em),
|
|
|
|
inset: (x: 0.15em),
|
2024-01-09 09:21:57 +00:00
|
|
|
radius: 0.25em,
|
|
|
|
)
|
2024-01-02 04:03:29 +00:00
|
|
|
|
|
|
|
// document title
|
|
|
|
if title != none {
|
|
|
|
align(
|
|
|
|
right,
|
|
|
|
text(..fonts.title, title)
|
|
|
|
+ v(-12pt)
|
|
|
|
+ text(..fonts.subtitle, subtitle)
|
|
|
|
)
|
2024-01-01 22:34:34 +00:00
|
|
|
|
2024-01-02 04:03:29 +00:00
|
|
|
v(0.25cm)
|
|
|
|
}
|
2024-01-01 22:34:34 +00:00
|
|
|
|
2024-01-02 04:03:29 +00:00
|
|
|
// content itself
|
2024-01-01 22:34:34 +00:00
|
|
|
doc
|
|
|
|
}
|