Tell me more ×
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.

What is the correct way of organizing the bibliography: Is it better to have only one .bib file which is shared by all TeX files, or am I supposed to have one .bib file for each TeX file (each paper)?

share|improve this question

1 Answer

up vote 8 down vote accepted

Work habits obviously vary from author to author, and what works well for one person may be inferior for many others. However, having to maintain separate bib files for each working paper you write doesn't seem like it could be optimal, especially because there's likely going to be a fair amount of duplication across the bib files.

Here, for what it's worth, is my approach to managing bibliography files: I use only one "master" bib file for all of my working papers. Incidentally, when writing scholarly papers, I generally use WinEdt 5.6 as the front end, and I rely on the associated BibMacros utilities package to help me manage creating, editing, formatting, and updating my bib entries.

Later on, when a paper is accepted for publication by a journal and I need to submit the tex, bib, and graphics files to get the piece published, I run one of the BibMacro utilities called "Extract from Aux". This winedt macro (i) extracts all entries actually used in the paper from the master bib file and (ii) places them into a new bib file. In the tex file, I simply adjust the \bibliography command to point to the new bib file. It is this new bib file, rather than the huge master file, which I submit to the journal (along with all other required files).

share|improve this answer
1  
Seems like someone should write up a package to recreate WinEdt's BibMacros from within LaTeX. Unless, of course, this already exists...? – Werner Feb 28 '12 at 18:47
@Werner -- I use bibtool to do this on Linux. It doesn't handle crossref-ed entries unfortunately, but it does extract @string's. Very useful when you need it. – jon Feb 28 '12 at 22:12

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.