Skip to main content

Compare two versions of an arXiv preprint with latexdiff.

Project description

Build Status Coverage Status License: MIT


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.


You can install comparxiv via

pip install comparxiv

or direct from source.

git clone
cd comparxiv 
python install


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 


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


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


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


  • v0.1 (24/04/2020): First version released.

To-do list

Planned features

  • comparison of figures
  • support of latex papers on biorxiv (?)


The author of this script is Timon Emken.

For questions, bug reports or other suggestions please contact


This project is licensed under the MIT License - see the LICENSE file.


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.9.tar.gz (8.6 kB view hashes)

Uploaded source

Built Distributions

comparxiv-0.1.9-py3-none-any.whl (8.7 kB view hashes)

Uploaded py3

comparxiv-0.1.9-py2.py3-none-any.whl (8.7 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page