Meta
Document structuring, introspection, and metadata configuration.
Here, you can find functions to structure your document and interact with that structure. This includes section headings and figures, bibliography management, cross-referencing and more.
Moreover, this category is home to Typst's introspection capabilities: With
the counter
function, you can access and manipulate page, section, figure,
and equation counters or create custom ones. And the query
function lets you
search for elements in the document to construct things like a list of
figures or headers which show the current chapter title.
Functions
bibliography
A bibliography / reference listing.cite
Cite a work from the bibliography.counter
Count through pages, elements, and more.document
The root element of a document and its metadata.figure
A figure with an optional caption.footnote
A footnote.heading
A section heading.layout
Provides access to the current outer container's (or page's, if none) sizelink
Link to a URL or a location in the document.locate
Provides access to the location of content.numbering
Apply a numbering to a sequence of numbers.outline
A table of contents, figures, or other elements.query
Find elements in the document.ref
A reference to a label or bibliography.selector
Turns a value into a selector. The following values are accepted:state
Manage stateful parts of your document.style
Provides access to active styles.