{"id":24327605,"url":"https://github.com/temken/comparxiv","last_synced_at":"2025-04-04T19:11:36.151Z","repository":{"id":42372192,"uuid":"246295685","full_name":"temken/comparxiv","owner":"temken","description":"Compare two version of an arXiv preprint with a single command.","archived":false,"fork":false,"pushed_at":"2022-11-24T13:08:29.000Z","size":62,"stargazers_count":357,"open_issues_count":5,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T18:14:08.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/comparxiv/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/temken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-10T12:31:36.000Z","updated_at":"2025-03-19T09:23:58.000Z","dependencies_parsed_at":"2023-01-21T11:10:04.941Z","dependency_job_id":null,"html_url":"https://github.com/temken/comparxiv","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temken%2Fcomparxiv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temken%2Fcomparxiv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temken%2Fcomparxiv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temken%2Fcomparxiv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/temken","download_url":"https://codeload.github.com/temken/comparxiv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234922,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-17T22:14:02.183Z","updated_at":"2025-04-04T19:11:36.125Z","avatar_url":"https://github.com/temken.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://travis-ci.com/temken/comparxiv.svg?branch=main)](https://travis-ci.com/temken/comparxiv)\n[![Coverage Status](https://coveralls.io/repos/github/temken/comparxiv/badge.svg?branch=main)](https://coveralls.io/github/temken/comparxiv?branch=main)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n# comparxiv \n\n[![Downloads](https://pepy.tech/badge/comparxiv)](https://pepy.tech/project/comparxiv)\n\nA wrapper of [**latexdiff**](https://ctan.org/pkg/latexdiff?lang=en) to compare two version of an [arXiv](https://arxiv.org) preprint with a single command.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/29034913/80139519-e28a4800-85a6-11ea-92f4-1210c1070376.png\" width=\"750\"\u003e\n\n\u003e **Disclaimer:** This is a beta version. Despite extensive testing, it does not work for all preprints on arXiv.\n\n## INSTALLATION\nYou can install *comparxiv* via\n```\npip install comparxiv\n```\n\nor direct from source.\n\n```\ngit clone https://github.com/temken/comparxiv.git\ncd comparxiv \npython setup.py install\n```\n\n## USAGE\nThere are three ways to run *comparxiv*:\n\n**(A) ID**: The easiest way is to simply provide a preprint ID such as\n\n```\ncomparxiv hep-ph/0612370\n```\n\nThis will compare the two latest versions of the paper.\n\n**(B) ID + version**: To compare version *N* with *N-1*, you can either run \n```\ncomparxiv 1709.06573vN \n```\nor\n```\ncomparxiv 1709.06573 N\n```\n\n**(B) ID + two versions**: To compare two specified version *N* and *M*, there are also two possible ways to give the input. Either\n```\ncomparxiv 1905.06348 N M\n```\n\nor\n\n```\ncomparxiv 1905.06348vN M \n```\n\nThe order of the two arguments (N and M) matters, the second version (M) is interpreted as the *new* version. \n\nA successful run will generate a pdf and open it.\n\nFor more details and options, run\n```\ncomparxiv --help\n```\n\n## DEPENDENCIES\n\n- [python](https://www.python.org/) and [pip](https://pypi.org/project/pip/)\n- a tex distribution with [pdflatex](https://linux.die.net/man/1/pdflatex) and [latexdiff](https://ctan.org/pkg/latexdiff?lang=en) (*)\n- [argparse](https://pypi.org/project/argparse/) (**)\n- [arxiv](https://pypi.org/project/arxiv/) (**)\n- [requests](https://pypi.org/project/requests/) (**)\n- [tqdm](https://pypi.org/project/tqdm/) (**)\n\n\u003e (*) Are part of any tex distribution, which can be installed on Linux e.g. via\n\u003e ```\n\u003e sudo apt-get install texlive-full\n\u003e ```\n\u003e or on macOS e.g. using [homebrew](https://brew.sh/).\n\u003e ```\n\u003e brew cask install mactex\n\u003e ```\n\u003e (**): Get installed automatically via pip, if necessary.\n\n## VERSIONS\n\n- **v0.1** (24/04/2020): First version released.\n\n## To-do list\nPlanned features\n\n- comparison of figures\n- support of latex papers on biorxiv (?)\n\n## AUTHORS \u0026 CONTACT\n\nThe author of this script is Timon Emken.\n\nFor questions, bug reports or other suggestions please contact [emken@chalmers.se](mailto:emken@chalmers.se).\n\n\n## LICENSE\n\nThis project is licensed under the MIT License - see the LICENSE file.\n\n## ACKNOWLEDGEMENTS\n\nI am grateful for [this useful tutorial](https://python-packaging.readthedocs.io/en/latest/index.html) by Scott Torborg about python packaging.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemken%2Fcomparxiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftemken%2Fcomparxiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemken%2Fcomparxiv/lists"}