{"route":"/en-US-v0.13.1/reference/introspection/","title":"Introspection","description":"Documentation for functions related to Introspection in Typst.","part":null,"outline":[{"id":"summary","name":"Summary","children":[]},{"id":"definitions","name":"Definitions","children":[]}],"body":{"kind":"category","content":{"name":"introspection","title":"Introspection","details":"<p>Interactions between document parts.</p>\n<p>This category is home to Typst's introspection capabilities: With the <code>counter</code>\nfunction, you can access and manipulate page, section, figure, and equation\ncounters or create custom ones. Meanwhile, the <code>query</code> function lets you search\nfor elements in the document to construct things like a list of figures or\nheaders which show the current chapter title.</p>\n<p>Most of the functions are <em>contextual.</em> It is recommended to read the chapter on\n<a href=\"/en-US-v0.13.1/reference/context/\" title=\"context\">context</a> before continuing here.</p>","items":[{"name":"counter","route":"/en-US-v0.13.1/reference/introspection/counter/","oneliner":"Counts through pages, elements, and more.","code":true},{"name":"here","route":"/en-US-v0.13.1/reference/introspection/here/","oneliner":"Provides the current location in the document.","code":true},{"name":"locate","route":"/en-US-v0.13.1/reference/introspection/locate/","oneliner":"Determines the location of an element in the document.","code":true},{"name":"location","route":"/en-US-v0.13.1/reference/introspection/location/","oneliner":"Identifies an element in the document.","code":true},{"name":"metadata","route":"/en-US-v0.13.1/reference/introspection/metadata/","oneliner":"Exposes a value to the query system without producing visible content.","code":true},{"name":"query","route":"/en-US-v0.13.1/reference/introspection/query/","oneliner":"Finds elements in the document.","code":true},{"name":"state","route":"/en-US-v0.13.1/reference/introspection/state/","oneliner":"Manages stateful parts of your document.","code":true}],"shorthands":null}}}