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-fullor 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.
Metadata
Release files for comparxiv 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| comparxiv-0.1.9.tar.gz | 8.6 kB | Without provenance | Details for comparxiv-0.1.9.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| comparxiv-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for comparxiv-0.1.9-py3-none-any.whl |
| comparxiv-0.1.9-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for comparxiv-0.1.9-py2.py3-none-any.whl |
Total release size: 26.0 kB
Release files / comparxiv-0.1.9.tar.gz
| Download URL | comparxiv-0.1.9.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62ad54695d5b2cf884e4b9c9c0f27fbb016eba3622d2845e5b52e36dbc671c26
|
|
BLAKE2b-256 checksum How to use checksums |
169c1b95f5f990450d9b31255f780813bd13a0753cf7e61997f849dd99dbda3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Release files / comparxiv-0.1.9-py3-none-any.whl
| Download URL | comparxiv-0.1.9-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8b06121badcca5412f330574454688169d923fecc8f06ba05febfeb17a3b2b5
|
|
BLAKE2b-256 checksum How to use checksums |
b1ea474d597576221b5f269b9d14316d68aabca17f06435bb2fd6ad6e49643d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Release files / comparxiv-0.1.9-py2.py3-none-any.whl
| Download URL | comparxiv-0.1.9-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
16a24868f0fe9001d798b86cc1e4e8871f601fef33577e89bb6c869d5ff56ff2
|
|
BLAKE2b-256 checksum How to use checksums |
b1e76f1f8b350d2666673f70f1b890880ea5b0234e0c906f8b96a6fb894497fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Security for comparxiv 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.