Take the 2-minute tour ×
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
1  
For a solution using biblatex, see tex.stackexchange.com/questions/6967/…. –  lockstep Oct 3 '11 at 22:40
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.