[texhax] Unused Labels

Daniel H. Luecking luecking at uark.edu
Wed Apr 3 17:06:53 CEST 2019

Weil, Clifford wrote
>Is there a facility that will find all "\label" entries that never occur in a "\ref" command?
>That is, is there a way to eliminate all labels that are never cited?

in the preamble, run LaTeX twice, then examine the log file for lines like
  Package refcheck Warning: Unused label `eq.2' on input line 44.

Caveat, I've never tried this. I found it by searching my TeXLive distribution for "labels":
   tlmgr search labels


Daniel H. Luecking
Dept. of Mathematical Sciences
University of Arkansas
Fayetteville, AR, USA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20190403/06466154/attachment.html>

More information about the texhax mailing list