When writing a .tex document, I often have labeled equations. When finishing the document, I sometimes find that I haven’t referenced all of the equations. So, I need to look for the equations which I haven’t referenced, and disable numbering for those equations. How can I do this in Emacs?
Basically, I need to search for all \label{*}. Then, for each * I find, let me know if there is less than 1 corresponding \ref{*}.
Thanks. (I guess it really is time for me to learn LISP).
Hacky Perl, suitable for a one-off. Neither tested nor proved correct.
The capture regex may grab both the entire match and the () match, I don’t recall offhand. If it does, grab the odds for the job.