Replace ADS citations with the appropriate INSPIRE ones in latex and bibtex
Project description
ads2inspire
Replace ADS citations with the appropriate INSPIRE ones in latex and bibtex
Why? Because ADS citation keys are not stable: they start out as something like 2019arXiv191207609s
,
and after being accepted to a journal turn into something like 2020PhRvD.101f4007S
. This means you
have to rewrite your latex, or you might even end up citing both entries!
Installation
From this repository
In your Python environment from the top level of this repository run
python -m pip install .
From GitHub
In your Python environment run
python -m pip install "git+https://github.com/duetosymmetry/ads2inspire.git#egg=ads2inspire"
Usage
First latex/bibtex/latex your file, then run
ads2inspire [--backup] auxfile.aux [texfile1.tex [texfile2.tex [...]]]
If your main tex file is named wondeful.tex
, then your auxfile will be named wonderful.aux
.
ads2inspire
will read the aux file, query INSPIRE, then rewrite all the texfiles named on the
command line, and append to the first bibtex file named in auxfile. The option --backup
will
make the program write backups of the tex and bib files before rewriting them.
Contributing
Note that I have done very little testing! Want to pitch in and help make this code better? Please fork and send me PRs!
TODO:
- More testing
- Distribution of package for pip/conda
- more?
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
Built Distribution
File details
Details for the file ads2inspire-0.1.dev14.tar.gz
.
File metadata
- Download URL: ads2inspire-0.1.dev14.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e86338e394a591a1a8539cdc8b76445513b551d1d6483d0911cf72fea4d57f05 |
|
MD5 | 8fbf2c242e99a7fd8ea01ca72da12c1c |
|
BLAKE2b-256 | 7fbf9b94e5ba8a9c9bb385ee7ba0566842a1b9e4b36ad037ad64277209c34de8 |
File details
Details for the file ads2inspire-0.1.dev14-py2.py3-none-any.whl
.
File metadata
- Download URL: ads2inspire-0.1.dev14-py2.py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6fac976bb1543d33fcb0aba58136cf073926cafc07d4814513050e8bceeddc |
|
MD5 | 030549d98296f3b6b2eb01ab885356aa |
|
BLAKE2b-256 | 8e488e54aa795aa65b562377be8f747d239c90926fc6e66a11f839b24b5bced6 |