Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
For a solution using biblatex, see…. – lockstep Oct 3 '11 at 22:40

1 Answer 1

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)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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