pre-commit-latex-hooks icon indicating copy to clipboard operation
pre-commit-latex-hooks copied to clipboard

ensure-labels-for-sections hook doesn't recognize refstyle labels

Open AbhijeetKrishnan opened this issue 1 year ago • 0 comments

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.

AbhijeetKrishnan avatar Jun 14 '24 21:06 AbhijeetKrishnan