Skip to main content

Compare two versions of an arXiv preprint with latexdiff.

Project description

Build Status Coverage Status License: MIT

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

(*) 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comparxiv-0.1.6.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

comparxiv-0.1.6-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file comparxiv-0.1.6.tar.gz.

File metadata

  • Download URL: comparxiv-0.1.6.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for comparxiv-0.1.6.tar.gz
Algorithm Hash digest
SHA256 11b655af029dfaeac4299e351c86a13a7105227c09cbe88d8efd8f9ba37ef8ec
MD5 ebf551adee3f33327d3a5b5c6ad31229
BLAKE2b-256 9e71ead8cb26ae0d4e10b3f2e8ee30c67c5049d3694725af602be31ee06f2015

See more details on using hashes here.

File details

Details for the file comparxiv-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: comparxiv-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for comparxiv-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 163efc1580dea5bc72d570a0249e5a688beb7fc99604418b71d27ab6eef05d1c
MD5 6b982df8ef588397b83a15da203d7304
BLAKE2b-256 292ea39e83421242b2b4fb3cf592ac161e7a33ac7a16ea8fa9adbde97aafbc2d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page