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.
The
refstylepackage 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 tolabel{eq:pythagoras}or\label{sec:Introduction}.However, the
ensure-labels-for-sectionshook 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 rungit commit --no-verify, which is not preferable.