Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidmstraub/inspiretools
Python package to auto-generate bibliographies pulling the bibtex data from Inspire
https://github.com/davidmstraub/inspiretools
Last synced: 2 days ago
JSON representation
Python package to auto-generate bibliographies pulling the bibtex data from Inspire
- Host: GitHub
- URL: https://github.com/davidmstraub/inspiretools
- Owner: DavidMStraub
- License: mit
- Created: 2015-08-05T09:42:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T19:18:30.000Z (almost 4 years ago)
- Last Synced: 2024-09-19T12:23:00.060Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 8
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://inspirehep.net/). `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`.