Compare two versions of an arXiv preprint with latexdiff.
Project description
comparxiv
A wrapper of latexdiff to compare two version of an arXiv preprint with a single command.
Disclaimer: This is a beta version. Despite extensive testing, it does not work for all preprints on arXiv.
INSTALLATION
You can install comparxiv via
pip install comparxiv
or direct from source.
git clone https://github.com/temken/comparxiv.git
cd comparxiv
python setup.py install
USAGE
There are three ways to run comparxiv:
(A) ID: The easiest way is to simply provide a preprint ID such as
comparxiv hep-ph/0612370
This will compare the two latest versions of the paper.
(B) ID + version: To compare version N with N-1, you can either run
comparxiv 1709.06573vN
or
comparxiv 1709.06573 N
(B) ID + two versions: To compare two specified version N and M, there are also two possible ways to give the input. Either
comparxiv 1905.06348 N M
or
comparxiv 1905.06348vN M
The order of the two arguments (N and M) matters, the second version (M) is interpreted as the new version.
A successful run will generate a pdf and open it.
For more details and options, run
comparxiv --help
DEPENDENCIES
- python and pip
- a tex distribution with pdflatex and latexdiff (*)
- argparse (**)
- arxiv (**)
- requests (**)
- tqdm (**)
(*) Are part of any tex distribution, which can be installed on Linux e.g. via
sudo apt-get install texlive-full
or on macOS e.g. using homebrew.
brew cask install mactex
(**): Get installed automatically via pip, if necessary.
VERSIONS
- v0.1 (24/04/2020): First version released.
To-do list
Planned features
- comparison of figures
- support of latex papers on biorxiv (?)
AUTHORS & CONTACT
The author of this script is Timon Emken.
For questions, bug reports or other suggestions please contact emken@chalmers.se.
LICENSE
This project is licensed under the MIT License - see the LICENSE file.
ACKNOWLEDGEMENTS
I am grateful for this useful tutorial by Scott Torborg about python packaging.
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 Distributions
File details
Details for the file comparxiv-0.1.8.tar.gz
.
File metadata
- Download URL: comparxiv-0.1.8.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17b668b881a87aa536f1bf369ccfd46d423e3ff8623801c504d1cb99f51656cc |
|
MD5 | 31a7a93a7fd1891ff0deb29b585220b0 |
|
BLAKE2b-256 | 550bf0c7e24cebcdbb52e9e425fc5c59ab845c90362da1335ad0130657dc1c42 |
File details
Details for the file comparxiv-0.1.8-py3.9.egg
.
File metadata
- Download URL: comparxiv-0.1.8-py3.9.egg
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8ecefa4527e3ec8de3a2435c2bb883ba0ba1bae4295e345cc354c49901fac0 |
|
MD5 | 1fb9c7402691aa7cb4bb310d655b38d6 |
|
BLAKE2b-256 | 635cbf394486e006885b901e757a367b51b16e13ea4ee000e7bd466e101a502e |
File details
Details for the file comparxiv-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: comparxiv-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8fec79b79187f7fa1bc2dab5c689492b514c8ea5ae04ee6649956f0a9df1639 |
|
MD5 | 530891fbbfd1a7916ba245c870a8482f |
|
BLAKE2b-256 | 6e5734270b83a831bd938fa7807d7b2aaf96174c18db879fbc43a87c467e0e58 |