pybibget
Command line utility to automatically retrieve BibTeX citations from MathSciNet, arXiv, PubMed and doi.org (Github)
Installation
Usage
Citation Keys
pybibget
provides a command line interface to obtain BibTeX entries from citation keys of the form
Citation key | Format |
---|---|
MR0026286 | MathSciNet (requires subscription) |
1512.03385 | arXiv identifier (new format) |
hep-th/9711200 | arXiv identifier (old format) |
PMID:271968 | PubMed |
10.1109/CVPR.2016.90 | DOI |
pybibget key1 key2 ...
prints the BibTeX entries stdout
:
With the option -w filename
the result can be appended to any given file directly:
TeX File Parsing
pybibparse
automatically parses missing citations from the biber
or bibtex
log for a given TeX
file
With the option -w [file_name]
the obtained citations are automatically appended to the .bib
file. [file_name]
is optional if the .bib
file has been specified in the TeX
file.
Updating existing bibliographies
pybibupdate [file.bib]
scans an existing .bib
-file and searches for entries with updated information on Scopus. This functionality requires an API-key which can be obtained from https://dev.elsevier.com
Data Sources
MathSciNet
Directly accesses MathSciNet and uses the provided citation unmodified
DOI
First searches for the DOI on MathSciNet. If successful, uses the MathSciNet strategy, otherwise uses the citation from doi.org with the following modifications:
- Author names and title are converted to TeX form (special characters like
ö
are converted to"{o}
) - Capital words in the title are surrounded by
{...}
to ensure capitalization - Publication month data is removed
PubMed
Searches for the DOI on PubMed, then uses the DOI strategy and appends pmid = [PMID]
to the resulting citation.
arXiv
Uses DOI strategy if metadata contains doi
.
Otherwise creates an unpublished
bib-entry with note = "Preprint"
or note = [Journal Metadata]
(if provided). In any-case appends eprint = [arXiv identifier]
to the citation.