Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

cite
Element
Element
Element functions can be customized with 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 ...
@arrgh @netwok.

You can also call `cite`
explicitly. #cite(<arrgh>)

#bibliography("works.bib")
Preview

If your source name contains certain characters such as slashes, which are not recognized by the <> syntax, you can explicitly call label instead.

Computer Modern is an example of a modernist serif typeface.
#cite(label("DBLP:books/lib/Knuth86a")).

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.

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

key
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The citation key that identifies the entry in the bibliography that shall be cited, as a label.

Show example
// All the same
@netwok \
#cite(<netwok>) \
#cite(label("netwok"))
Preview

supplement
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

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

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

Default value:

none

Show example
This has been proven. @distress[p.~7]

#bibliography("works.bib")
Preview

form
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The kind of citation to produce. Different forms are useful in different scenarios: A normal citation is useful as a source at the end of a sentence, while a "prose" citation is more suitable for inclusion in the flow of text.

If set to none, the cited work is included in the bibliography, but nothing will be displayed.

Available string values:
  • normal

    Display in the standard way for the active style.

  • prose

    Produces a citation that is suitable for inclusion in a sentence.

  • full

    Mimics a bibliography entry, with full information about the cited work.

  • author

    Shows only the cited work's author(s).

  • year

    Shows only the cited work's year.

Default value:

"normal"

Show example
#cite(<netwok>, form: "prose")
show the outsized effects of
pirate life on the human psyche.
Preview

style
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The citation style.

This can be:

  • auto to automatically use the bibliography's style for citations.
  • A string with the name of one of the built-in styles (see below). Some of the styles listed below appear twice, once with their full name and once with a short alias.
  • A path string to a CSL file. For more details about paths, see the Paths section.
  • Raw bytes from which a CSL style should be decoded.
Available string values:
  • alphanumeric

    Alphanumeric

  • american-anthropological-association

    American Anthropological Association

  • american-chemical-society

    American Chemical Society

  • american-geophysical-union

    American Geophysical Union

  • american-institute-of-aeronautics-and-astronautics

    American Institute of Aeronautics and Astronautics

  • american-institute-of-physics

    American Institute of Physics 4th edition

  • american-medical-association

    American Medical Association 11th edition

  • american-meteorological-society

    American Meteorological Society

  • american-physics-society

    American Physical Society

  • american-physiological-society

    American Physiological Society

  • american-political-science-association

    American Political Science Association

  • american-psychological-association

    American Psychological Association 7th edition

  • apa

    A short alias of american-psychological-association

  • american-society-for-microbiology

    American Society for Microbiology

  • american-society-of-civil-engineers

    American Society of Civil Engineers

  • american-society-of-mechanical-engineers

    American Society of Mechanical Engineers

  • american-sociological-association

    American Sociological Association 6th/7th edition

  • angewandte-chemie

    Angewandte Chemie International Edition

  • annual-reviews

    Annual Reviews (sorted by order of appearance)

  • annual-reviews-author-date

    Annual Reviews (author-date)

  • associacao-brasileira-de-normas-tecnicas

    Associação Brasileira de Normas Técnicas (Português - Brasil)

  • association-for-computing-machinery

    Association for Computing Machinery

  • biomed-central

    BioMed Central

  • bristol-university-press

    Bristol University Press

  • british-medical-journal

    BMJ

  • bmj

    A short alias of british-medical-journal

  • cell

    Cell

  • chicago-author-date

    Chicago Manual of Style 17th edition (author-date)

  • chicago-fullnotes

    Chicago Manual of Style 17th edition (full note)

  • chicago-notes

    Chicago Manual of Style 17th edition (note)

  • copernicus

    Copernicus Publications

  • council-of-science-editors

    Council of Science Editors, Citation-Sequence (numeric, brackets)

  • council-of-science-editors-author-date

    Council of Science Editors, Name-Year (author-date)

  • current-opinion

    Current Opinion journals

  • deutsche-gesellschaft-für-psychologie

    Deutsche Gesellschaft für Psychologie 5. Auflage (Deutsch)

  • deutsche-sprache

    Deutsche Sprache (Deutsch)

  • elsevier-harvard

    Elsevier - Harvard (with titles)

  • elsevier-vancouver

    Elsevier - Vancouver

  • elsevier-with-titles

    Elsevier (numeric, with titles)

  • frontiers

    Frontiers journals

  • future-medicine

    Future Medicine journals

  • future-science

    Future Science Group

  • gb-7714-2005-numeric

    China National Standard GB/T 7714-2005 (numeric, 中文)

  • gb-7714-2015-author-date

    China National Standard GB/T 7714-2015 (author-date, 中文)

  • gb-7714-2015-note

    China National Standard GB/T 7714-2015 (note, 中文)

  • gb-7714-2015-numeric

    China National Standard GB/T 7714-2015 (numeric, 中文)

  • gost-r-705-2008-numeric

    Russian GOST R 7.0.5-2008 (numeric)

  • harvard-cite-them-right

    Cite Them Right 12th edition - Harvard

  • institute-of-electrical-and-electronics-engineers

    IEEE

  • ieee

    A short alias of institute-of-electrical-and-electronics-engineers

  • institute-of-physics-numeric

    Institute of Physics (numeric)

  • iso-690-author-date

    ISO-690 (author-date, English)

  • iso-690-numeric

    ISO-690 (numeric, English)

  • karger

    Karger journals

  • mary-ann-liebert-vancouver

    Mary Ann Liebert - Vancouver

  • modern-humanities-research-association

    Modern Humanities Research Association 4th edition (note with bibliography)

  • modern-language-association

    Modern Language Association 9th edition

  • mla

    A short alias of modern-language-association

  • modern-language-association-8

    Modern Language Association 8th edition

  • mla-8

    A short alias of modern-language-association-8

  • multidisciplinary-digital-publishing-institute

    Multidisciplinary Digital Publishing Institute

  • nature

    Nature

  • pensoft

    Pensoft Journals

  • public-library-of-science

    Public Library of Science

  • plos

    A short alias of public-library-of-science

  • royal-society-of-chemistry

    Royal Society of Chemistry

  • sage-vancouver

    SAGE - Vancouver

  • sist02

    SIST02 (日本語)

  • spie

    SPIE journals

  • springer-basic

    Springer - Basic (numeric, brackets)

  • springer-basic-author-date

    Springer - Basic (author-date)

  • springer-fachzeitschriften-medizin-psychologie

    Springer - Fachzeitschriften Medizin Psychologie (Deutsch)

  • springer-humanities-author-date

    Springer - Humanities (author-date)

  • springer-lecture-notes-in-computer-science

    Springer - Lecture Notes in Computer Science

  • springer-mathphys

    Springer - MathPhys (numeric, brackets)

  • springer-socpsych-author-date

    Springer - SocPsych (author-date)

  • springer-vancouver

    Springer - Vancouver (brackets)

  • taylor-and-francis-chicago-author-date

    Taylor & Francis - Chicago Manual of Style (author-date)

  • taylor-and-francis-national-library-of-medicine

    Taylor & Francis - National Library of Medicine

  • the-institution-of-engineering-and-technology

    The Institution of Engineering and Technology

  • the-lancet

    The Lancet

  • thieme

    Thieme-German (Deutsch)

  • trends

    Trends journals

  • turabian-author-date

    Turabian 9th edition (author-date)

  • turabian-fullnote-8

    Turabian 8th edition (full note)

  • vancouver

    Vancouver

  • vancouver-superscript

    Vancouver (superscript)

Default value:

auto

Open official docs

Search