I would like to list all items in my .bib database which are not cited by a particular document, to make sure I have not overlooked citing anything that I intended to cite. Is there an easy way to do this?


Here's a quick and dirty way to get the job done in the unix shell:

comm -13 <(sed -n 's/^\\bibitem{\(.*\)}/\1/p' < document.bbl | sort) \
         <(sed -n 's/^@\(.*\){\(.*\),/\2/p' < myrefs.bib | sort)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.