Apr 18, 2026 943 B typst
1= Citations and bibliography
2
3Typst has built-in citation and bibliography support.
4
5== Citing sources
6
7Citations use the `@key` syntax, referencing entries in a `.bib` or `.yml` bibliography file.
8
9As described by @knuth1984, the art of computer programming requires careful attention to algorithms. Modern typesetting builds on decades of work @lamport1994.
10
11The web has fundamentally changed publishing @berners-lee1989.
12
13== Citation forms
14
15Different ways to cite:
16
17- Default: @knuth1984
18- Prose form: #cite(<knuth1984>, form: "prose")
19
20== Styles
21
22Citation style can be set with:
23
24```typst
25#set bibliography(style: "ieee")
26```
27
28Available styles include: `apa`, `ieee`, `chicago-author-date`, `mla`, and many others.
29
30== How it works on sublimated
31
32Push your `.typ` file alongside a `.bib` file in the same folder. The compiler resolves the bibliography automatically through relative path imports.
33
34== References
35
36#bibliography("refs.bib")