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

footnote
Element
Element
Element functions can be customized with set and show rules.

A footnote.

Includes additional remarks and references on the same page with footnotes. A footnote will insert a superscript number that links to the note at the bottom of the page. Notes are numbered sequentially throughout your document and can break across multiple pages.

To customize the appearance of the entry in the footnote listing, see footnote.entry. The footnote itself is realized as a normal superscript, so you can use a set rule on the super function to customize it. You can also apply a show rule to customize only the footnote marker (superscript number) in the running text.

Example

Check the docs for more details.
#footnote[https://typst.app/docs]
Preview

The footnote automatically attaches itself to the preceding word, even if there is a space before it in the markup. To force space, you can use the string #" " or explicit horizontal spacing.

By giving a label to a footnote, you can have multiple references to it.

You can edit Typst documents online.
#footnote[https://typst.app/app] <fn>
Checkout Typst's website. @fn
And the online app. #footnote(<fn>)
Preview

Note: Set and show rules in the scope where footnote is called may not apply to the footnote's content. See here for more information.

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

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

How to number footnotes. Accepts a numbering pattern or function taking a single number.

By default, the footnote numbering continues throughout your document. If you prefer per-page footnote numbering, you can reset the footnote counter in the page header. In the future, there might be a simpler way to achieve this.

Default value:

"1"

Show example
#set footnote(numbering: "*")

Footnotes:
#footnote[Star],
#footnote[Dagger]
Preview

body
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 content to put into the footnote. Can also be the label of another footnote this one should point to.

Definition
Definition
These functions and types can have related definitions. To access a definition, specify the name of the function or type, followed by the definition name separated by a period.

entry
Element
Element
Element functions can be customized with set and show rules.

An entry in a footnote list.

This function is not intended to be called directly. Instead, it is used in set and show rules to customize footnote listings.

Show example
#show footnote.entry: set text(red)

My footnote listing
#footnote[It's down here]
has red text!
Preview

Note: Footnote entry properties must be uniform across each page run (a page run is a sequence of pages without an explicit pagebreak in between). For this reason, set and show rules for footnote entries should be defined before any page content, typically at the very start of the document.

note
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 footnote for this entry. Its location can be used to determine the footnote counter state.

Show example
#show footnote.entry: it => {
  let loc = it.note.location()
  numbering(
    "1: ",
    ..counter(footnote).at(loc),
  )
  it.note.body
}

Customized #footnote[Hello]
listing #footnote[World! 🌏]
Preview

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

The separator between the document body and the footnote listing.

Default value:

line(length: 30% + 0pt, stroke: 0.5pt)

Show example
#set footnote.entry(
  separator: repeat[.]
)

Testing a different separator.
#footnote[
  Unconventional, but maybe
  not that bad?
]
Preview

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

The amount of clearance between the document body and the separator.

Default value:

1em

Show example
#set footnote.entry(clearance: 3em)

Footnotes also need ...
#footnote[
  ... some space to breathe.
]
Preview

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

The gap between footnote entries.

Default value:

0.5em

Show example
#set footnote.entry(gap: 0.8em)

Footnotes:
#footnote[Spaced],
#footnote[Apart]
Preview

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

The indent of each footnote entry.

Default value:

1em

Show example
#set footnote.entry(indent: 0em)

Footnotes:
#footnote[No],
#footnote[Indent]
Preview
Open official docs

Search