typst/docs/reference/library/introspection.md
Laurenz 029ae4a5ea
Export target docs (#5812)
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-02-05 13:24:10 +00:00

511 B

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.

Most of the functions are contextual. It is recommended to read the chapter on [context] before continuing here.