Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

locate上下文相关函数
Question mark
自始可用Go to source

Determines the location of an element in the document.

Takes a selector that must match exactly one element and returns that element’s location. This location can, in particular, be used to retrieve the physical page number and position (page, x, y) for that element.

Examples

Locating a specific element:

#context [ Introduction is at: \ #locate(<intro>).position() ] = Introduction <intro>

参数
Question mark

selector
label or selector or location or function
必需参数
Question mark
位置参数
Question mark

A selector that should match exactly one element. This element will be located.

Especially useful in combination with