Skip to main content

Robust arXiv LaTeX cleaner with DPI-based image rescaling.

Project description

arxivit 🧹

Robust arXiv LaTeX cleaner with DPI-based image rescaling.

Installation

pip install arxivit

Usage

# Create an uploadable archive: /path/to/paper.arxiv.tar
arxivit /path/to/paper/main.tex

For more options, run:

arxivit --help

Q&A

Why Not arxiv-latex-cleaner?

arxiv-latex-cleaner statically analyzes LaTeX source code, which has some limitations:

  1. It does not reliably track dependencies in all scenarios—e.g., when images are included via complex macros that obscure their filenames in the source code.
  2. It only supports fixed-size image rescaling, without considering how large an image appears in the final compiled PDF.

How Does arxivit Work?

arxivit takes a different approach:

  • It uses latexmk to compile the LaTeX source code.
  • It analyzes the compilation log to determine which .tex files and images are included, as well as their sizes in the final PDF.
  • It rescales images to the desired DPI based on their actual dimensions in the final document, ensuring uniform sharpness while minimizing file size.
  • It uses latexpand to strip comments from .tex files.

Related Projects

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

arxivit-0.2.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arxivit-0.2.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file arxivit-0.2.1.tar.gz.

File metadata

  • Download URL: arxivit-0.2.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for arxivit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1724c77c4709a6162b1f06835968ac0339af452386f73de68f6b5b963fcde105
MD5 1eb2e75ca89b62089a3da96b641933d1
BLAKE2b-256 117e36537d133eea10eb188206247b42085147e8e511405da5dba05f813bfc25

See more details on using hashes here.

File details

Details for the file arxivit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: arxivit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for arxivit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9211f97bfd1f3d5afc53ab97cf7b7c9c1fd11514f64b5652854e26f5871a95be
MD5 7827b5ef4e9644984db7760e9e13fce8
BLAKE2b-256 1546a1249d9139f6582499f3f5c8728ac12f9b77a51ab8fbf2e2e0657baf2943

See more details on using hashes here.

Supported by

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