TransWikia.com

Generate new .bib file from multiple .bib files (or .tex file?)

TeX - LaTeX Asked by PhysicsHobbit on June 9, 2021

I am writing an article using RevTex4-2, where I reference from 10 individual .bib files (separated by topic). This works beautifully.

However, I would like to extract only the references I need from these 10 .bib files and place them in a single .bib file. Is there an automatic way to do this?

Is it possible to generate a new .bib file containing only these .bib entries from, say, my .tex document?

One Answer

You can do that with bibexport. The workflow to create a new bibTeX file with only the items cited in a document is

pdflatex filename
bibexport filename

Where filename is the name of the tex file without extension. bibexport operates on the .aux file (this is why one has to run latex first).

For the full documentation of bibexport run

texdoc bibexport

from a terminal or command line.

Answered by Guido on June 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP