Fortunately this can be done fairly automatically using the bibexport tool. Quick rundown:
- Compile your document, say myarticle.tex the usual way, with your “big” allrefs.bib file.
- Run bibexport with the following:
bibexport -o extracted.bib myarticle
extracted.bib should now contain only the bibliography entries that were cited in myarticle.tex. - Change \bibliography{allrefs.bib} to \bibliography{extracted.bib} in myarticle.tex.
- Send myarticle.tex and extracted.bib to collaborator or editor!
No comments:
Post a Comment