This Python 3 package provides two scripts,
blgtobib, which take a LaTeX
.blg file as input.
auxtobib fetches the
bibtex entries for all the articles cited in the document from
blgtobib does the same, but only fetches those entries which are missing.
To install the package in your home directory, run
python3 -m pip install inspiretools --user
The script requires Python 3.5+.
Given a LaTeX
.aux file, simply execute
bibtex entries will be printed to
stdout. If you want to save them
.bib file, simply use
auxtobib paper.aux > bibliography.bib
blgtobib will fetch only
bibtex entries which are not already in
.bib file associated with your project. It uses the
bibtex log file
associated with the LaTeX project. For example,
blgtobib paper.blg >> bibliography.bib
will append new entries to