You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the output of typst query, add a location field for each element, containing page, x, and y fields corresponding to the element's page and position on the page, as returned by location.page and location.position.
Use Case
This would make it easier for outside tools to inspect a Typst document and perform various operations based on that, such as exporting only the pages that contain a given element (e.g., the bibliography). AFAIK, getting this information is currently only possible by placing metadata elements in the document, which requires modifying the document and is not always an option.
+1 for this. Also, it would be great if we could retrieve the position not only in the final artifact but it the typst code itself. It would be really useful for #3278 too.
Activity
YPares commentedon Nov 9, 2025
+1 for this. Also, it would be great if we could retrieve the position not only in the final artifact but it the typst code itself. It would be really useful for #3278 too.
laurmaedje commentedon Nov 10, 2025
#7344 would cover this.