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. Especially older preprints can cause problems.

INSTALLATION

You can install comparxiv via

pip install comparxiv

or direct from source. Just run

git clone https://github.com/temken/comparxiv.git
cd comparxiv 
python setup.py install

USAGE

To compare v1 and v2 of a paper with comparxiv, run e.g.

comparxiv 1905.06348 1 2

or simply

comparxiv hep-ph/0612370

(By default, comparxiv compares version 1 and 2).

It is also possible to run

comparxiv 1709.06573v[N]

This will compare version N to N-1, and the optional second and third arguments are ignored.

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 (**)
  • tqdm (**)
  • requests (**)

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

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.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

comparxiv-0.1.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comparxiv-0.1.3.tar.gz
  • Upload date:
  • Size: 5.8 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.3.tar.gz
Algorithm Hash digest
SHA256 874d1c2513cf43e4a2cb37810118de0986332474e951e7db1546a38410b5d405
MD5 4cb6880c1a575eb9e9d3a81d2749c5de
BLAKE2b-256 f6886a0d98d9ad6c9de5123449300d53f6eb48e6e7bc6de2ce96a80965f9c1f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comparxiv-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c75c1f2d8875b6b1c6bc57ffa2b6b9f6231b75bfa8635504e344a31cebb760b3
MD5 a68db1e3d68bdbe1ef4a7f1a0b5f1de4
BLAKE2b-256 7ad2da4c71cb2f8339e8eb6b507beb1e3423b1f9d420dc28e867f97b3e69111e

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