-
Notifications
You must be signed in to change notification settings - Fork 1
/
typ.yaml
30 lines (30 loc) · 1.5 KB
/
typ.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Settings for typst
pdf-engine: typst
template: bk
filters:
- fixes-typst.lua
variables:
papersize: a4
# builtin bibliography styles for csl/bibliographystyle: ieee, apa,
# chicago-author-date, mla, chicago-notes, american-physics-society,
# harvard-cite-them-right.
bibliographystyle: chicago-author-date
margin:
x: 3cm
y: 3cm
mainfont: "PT Serif"
sansfont: "PT Sans"
linkcolor: blue
fontsize: 11pt
# TODO: use gentle-clues instead
header-includes:
- '#show heading: set text(font:"PT Sans")'
- '#show raw: set text(font:"DejaVu Sans Mono")'
- '#show raw: set block(fill:luma(240),width:100%,inset:6pt)'
- '#import "@preview/note-me:0.2.1": admonition'
- '#let tip(title:"Ábending", t) = admonition(icon:"icons/light-bulb.svg", title:title, color:green, background-color:luma(240), t)'
- '#let note(title:"Athugasemd", t) = admonition(icon:"icons/info.svg", title:title, color:blue, background-color:luma(240), t)'
- '#let important(title:"Mikilvægt", t) = admonition(icon:"icons/report.svg", title:title, color:maroon, background-color:luma(240), t)'
- '#let warning(title:"Viðvörun", t) = admonition(icon:"icons/alert.svg", title:title, color:orange, background-color:luma(240), t)'
- '#let caution(title:"Sýnið aðgát", t) = admonition(icon:"icons/stop.svg", title:title, color:red, background-color:luma(240), t)'
- '#let todo(title:"Í vinnslu", t) = admonition(icon:"icons/question.svg", title:title, color:purple, background-color:luma(240), t)'