TypstDocumentation

citeElement
Question mark

Cite a work from the bibliography.

Before you starting citing, you need to add a bibliography somewhere in your document.

Example

This was already noted by
pirates long ago. @arrgh

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

#bibliography("works.bib")
Preview

Syntax

This function indirectly has dedicated syntax. References can be used to cite works from the bibliography. The label then corresponds to the citation key.

Parameters
Question mark

keys
string
RequiredPositional
Question mark
Variadic
Question mark

The citation keys that identify the elements that shall be cited in the bibliography.

Reference syntax supports only a single key.

supplement
none or content
Positional
Question mark
Settable
Question mark

A supplement for the citation such as page or chapter number.

In reference syntax, the supplement can be added in square brackets:

Default: none

This has been proven over and
over again. @distress[p.~7]

#bibliography("works.bib")
Preview

brackets
boolean
Settable
Question mark

Whether the citation should include brackets.

Default: true

#set cite(brackets: false)

@netwok follow these methods
in their work ...

#bibliography(
  "works.bib",
  style: "chicago-author-date",
)
Preview

style
auto or string
Settable
Question mark

The citation style.

When set to auto, automatically picks the preferred citation style for the bibliography's style.

Default: auto

#set cite(style: "alphanumerical")
Alphanumerical references.
@netwok

#bibliography("works.bib")
Preview