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
I usually collect thematically related LaTeX documents in a single repository with one .tex file per document. This works perfectly well with the whole hook suite, except for unique-labels:
If I've got, e.g., two documents with an introduction section each, both labelled \label{sec:introduction}, the hook will report it as duplicate and prevent the commit.
I would like to propose adding an optional flag --individual to unique-labels causing the hook to perform the check on each file individually. You could invoke it like this:
hooks:
- id: unique-labelsargs:
["--individual"]
I know, this is not an ideal solution, but it would help cover my use case. See the pull request #176 for an implementation that works as described.