TypstDocumentation

bibliographyElement
Question mark

A bibliography / reference listing.

You can create a new bibliography by calling this function with a path to a bibliography file in either one of two formats:

As soon as you add a bibliography somewhere in your document, you can start citing things with reference syntax (@key) or explicit calls to the citation function (#cite("key")). The bibliography will only show entries for works that were referenced in the document.

Example

This was already noted by
pirates long ago. @arrgh

Multiple sources say ...
#cite("arrgh", "netwok").

#bibliography("works.bib")
Preview

Parameters
Question mark

path
string or array
RequiredPositional
Question mark

Path to a Hayagriva .yml or BibLaTeX .bib file.

title
none or auto or content
Settable
Question mark

The title of the bibliography.

The bibliography's heading will not be numbered by default, but you can force it to be with a show-set rule: show bibliography: set heading(numbering: "1.")

Default: auto

style
string
Settable
Question mark

The bibliography style.

Default: "ieee"