BibTeX files are typically manually maintained and thus often contain inconsistencies, mistakes, or are missing information. betterbib helps maintaining your BibTeX files by comparing them with online sources and correcting whatever entries are found faulty.
All of the following tools can read from standard input and write to standard output, so you can concatenate them to get exactly what you want; e.g.,
betterbib-sync in.bib | betterbib-format -t -b - out.bib
With
$ betterbib-sync in.bib out.bib
the input BibTeX
@article {krylov,
author = {Liesen and Gaul and Nabben},
title = {Framework Deflation Krylov Augmented}
}
is converted into
@article{krylov,
author = {Gaul, André and Gutknecht, Martin H. and Liesen, Jörg and Nabben, Reinhard},
publisher = {Society for Industrial & Applied Mathematics (SIAM)},
doi = {10.1137/110820713},
title = {A Framework for Deflated and Augmented {Krylov} Subspace Methods},
url = {https://doi.org/10.1137/110820713},
journal = {SIAM J. Matrix Anal. & Appl.},
number = {2},
month = jan,
volume = {34},
source = {Crossref},
year = {2013},
pages = {495-518}
}
(If you prefer long journal names, add the option --long-journal-name
/-l
.)
betterbib fetches data from
All betterbib command-line options are explained in betterbib -h
.
The tool
betterbib-format in.bib out.bib
allows you to apply consistent formatting to you BibTeX file. See -h
/--help
for options.
betterbib is available from the Python Package Index, so simply type
pip install -U betterbib
to install or upgrade. Use sudo -H
to install as root or the --user
option
of pip
to install in $HOME
.
betterbib requires
to be installed.
To run the betterbib unit tests, check out this repository and type
pytest
To create a new release
-
bump the
__version__
number, -
publish to PyPi and tag on GitHub:
$ make publish
betterbib is published under the MIT license.