38ef659 ←86a4983antonApr 18, 2026 api

create bibliography.typ via macOS

A /docs/undefined +38 -0
A /docs/undefined +38 -0
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== Bibliography
14
15To use a bibliography, add it at the end of your document:
16
17```typst
18#bibliography("refs.bib")
19```
20
21Typst supports BibTeX (`.bib`) and Hayagriva (`.yml`) bibliography formats. Citation styles can be set with:
22
23```typst
24#set bibliography(style: "ieee")
25```
26
27Available styles include: `apa`, `ieee`, `chicago-author-date`, `mla`, and many others.
28
29== Inline citations
30
31Different citation forms:
32
33- Parenthetical: #cite(<knuth1984>, form: "prose") discusses this topic
34- Just the year: published in #cite(<knuth1984>, form: "year")
35
36== How it works on sublimated
37
38Push your `.typ` file alongside a `.bib` file in the same folder. The compiler resolves the bibliography automatically through relative path imports.