Deleting unused equation numbers from LaTeX code
11 May 2010
Suppose you’ve written a long LaTeX document containing many many numbered formulas, like for example a scientific paper. Assuming that you have used AUCTeX’ fantastic macro completion it may well be the case that many of the numbered equations that you have entered are never referenced. How to get rid of the unused equation numbers? Unfortunately, emacs itself (i.e., reftex) does not seem to offer a remedy. So I came up with a little bash script that finds all labels, all references, matches them up to see which ones are not actually used and then deletes those from your tex... Read more.