Python package to auto-generate bibliographies pulling the bibtex data from Inspire
Project description
INSPIRE tools
This Python 3 package provides two scripts, auxtobib
and blgtobib
, which take a LaTeX .aux
or .blg
file as input.
auxtobib
fetches the bibtex
entries for all the articles cited in the document from
INSPIRE. blgtobib
does the same, but only fetches those entries which are missing.
Installation
To install the package in your home directory, run
python3 -m pip install inspiretools --user
Requirements
The script requires Python 3.5+.
Usage
Given a LaTeX .aux
file, simply execute
auxtobib paper.aux
and the bibtex
entries will be printed to stdout
. If you want to save them
into a .bib
file, simply use
auxtobib paper.aux > bibliography.bib
The script blgtobib
will fetch only bibtex
entries which are not already in
the .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 bibliography.bib
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file inspiretools-0.3.tar.gz
.
File metadata
- Download URL: inspiretools-0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ee2e7cd2b1be0f17a331175391f409643cd2ad885d42135874d15affc816d1f |
|
MD5 | 7419899e3dacaf9f8ab0a82f32ea9f17 |
|
BLAKE2b-256 | 740254809f1c7da4ab507a2fff31295c123bdf57efd5fda7ef2cc0e85e8c0a00 |