cite
ElementElement functions can be customized with set
and show
rules.
set
and show
rules.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")

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.
ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
keys
RequiredPositionalPositional parameters are specified in order, without names.VariadicVariadic parameters can be specified multiple times.
The citation keys that identify the elements that shall be cited in the bibliography.
Reference syntax supports only a single key.
supplement
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")

brackets
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
set
rule.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",
)

style
The citation style.
When set to auto
, automatically picks the preferred citation style
for the bibliography's style.
"numerical"
IEEE-style numerical reference markers.
"alphanumerical"
A simple alphanumerical style. For example, the output could be Rass97 or MKG+21.
"keys"
Citations that just consist of the entry keys.
"chicago-author-date"
The Chicago Author Date style. Based on the 17th edition of the Chicago Manual of Style, Chapter 15.
"chicago-notes"
The Chicago Notes style. Based on the 17th edition of the Chicago Manual of Style, Chapter 14.
"chicago-author-title"
A Chicago-like author-title format. Results could look like this: Prokopov, “It Is Fast or It Is Wrong”.
Default: auto
#set cite(style: "alphanumerical")
Alphanumerical references.
@netwok
#bibliography("works.bib")
