The following example, a follow-up of Give an error if I don't reference a label, generates a warning:
\documentclass{article}
\usepackage{amsmath}
\usepackage{refcheck}
\begin{document}
\begin{figure}
% ...
\caption{A nice picture of my dog}\label{fig:dog}
\end{figure}
% As seen in figure~\ref{fig:dog}
\end{document}
The warning is:
Package refcheck Warning: Unused label `fig:dog' on input line 8.
I would like to turn that warning (and only that warning, not others) into an error. I would prefer to do this inside LaTeX rather than through an external bash script parsing the log.
\label{foo}/\ref{foo}pair the first compilation would give an error (because two compilations are needed before\refknows there's a suiting\label) – cgnieder Jul 05 '15 at 12:05refcheckpackage). But warnings are not too bad IMHO: 1) one should pay attention to warnings anyway and 2) an unused label doesn't do any harm, really. – cgnieder Jul 05 '15 at 13:36