Skip to content

Return location information in typst query #7008

@MDLC01

Description

@MDLC01

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliAbout Typst's command line interface.feature requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions