Skip to content

completion is missing equation labels when using autonum #2976

@ces42

Description

@ces42

This is a rather low-priority issue.
Is your feature request related to a problem? Please describe it.
When using the autonum package1 equations that are \labeled but not \referenced don't appear in the aux file. Hence they don't appear in vimtex's completion.

Describe the solution you'd like
Maybe it would be possible to just search the current file for \labels and add those to the completion function?. This would also fix \labels not appearing in completion if the document has not been compiled since they were added (which happens frequently because most of time you add a \label you will \reference it right away.)

Footnotes

  1. The main feature of this package is that \labeled equations in the source that don't \referenced don't get labeled in the pdf

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions