1
0
ain48/docs/.template.typ
2026-05-31 12:33:05 +02:00

32 lines
1010 B
Typst

#import "@preview/cetz:0.5.2"
#import "@preview/smartaref:0.1.0": cref
#import "@preview/libra:0.1.0": balance
#let conf(doc) = {
set page(paper: "a4", numbering: "1")
set text(
font: "Iosevka Etoile",
features: (cv47: 10),
number-type: "old-style",
weight: 400,
size: 12pt,
)
set par(justify: true)
set heading(numbering: "I.1")
show raw: set text(font: "Iosevka Slab", size: 1em / .8)
show math.equation: set text(font: "Fira Math", weight: 400)
show title: align.with(center)
show strong: text.with(weight: 900)
set figure(numbering: "1", placement: auto)
show heading.where(level: 3): set heading(numbering: none)
show figure.caption: it => balance(box(width: 100%, {
it.supplement
[ ]
it.counter.display(it.numbering)
[ --- ]
it.body
}))
set raw(theme: "./gruvbox-white.tmTheme")
show raw.where(lang: "ain48"): set raw(syntaxes: "./ain48.sublime-syntax")
doc
}