TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to split all BibTeX referenced entries from a big BibTeX database to a copy?

I have one big foo.bib file that contains all my references. Every one of my different LaTeX documents uses this with \bibliography{foo} and cites only a subset of the contained references.

Is there a good script that takes one of my LaTeX documents (including everything it includes using \input) and extracts all the items in foo.bib that are cited?

In other words, I'd like to filter the big foo.bib file using a LaTeX document so that only the cited bibliography items survive.

share|improve this question

marked as duplicate by Michael Underwood, Lev Bishop, Jukka Suomela, Caramdir, Joseph Wright Aug 16 '10 at 18:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Check out this question: tex.stackexchange.com/questions/417/… – Michael Underwood Aug 16 '10 at 15:29
Definitely looks like a duplicate to me – Joseph Wright Aug 16 '10 at 18:51

I think there are some perl scripts doing that.

But I use RefTeX which offers a function reftex-create-bibtex-file that does just that.

share|improve this answer

The bibkey command from pybib can do this (amongst other tools)

share|improve this answer

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