Interactions between document parts.
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. Meanwhile, 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.
counterCounts through pages, elements, and more.
locateProvides access to the location of content.
locationIdentifies an element in the document.
metadataExposes a value to the query system without producing visible content.
queryFinds elements in the document.
stateManages stateful parts of your document.