pre-commit-latex-hooks
pre-commit-latex-hooks copied to clipboard
ensure-labels-for-sections hook doesn't recognize refstyle labels
The refstyle package provides commands like \eqlabel{pythagoras} or \seclabel{Introduction} to define labels, and \eqref{pythagoras} or \secref{Introduction} to reference them, allowing for finer grained control over the display of references for different elements of your TeX document. They are equivalent to label{eq:pythagoras} or \label{sec:Introduction}.
However, the ensure-labels-for-sections hook doesn't currently recognize this style of label definitions, flagging it as missing label. It would be nice to have that support, as my current solution is to run git commit --no-verify, which is not preferable.