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.4.0.tar.gz (13.5 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.4.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for arxivit-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8e68e5ab7dc62ba6ef2c9843eee6610c8541528c0993961cbddeb7cb0fd65a64
MD5 9040ef9b69cacb0dd47d3a156dc861de
BLAKE2b-256 3bd87720ef0eaf34777cde2c2bc832b2f73d07d0b67ee31349c1babac2813389

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for arxivit-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6144bf8d88715e736d021c6466ab6498661caa27a8e3f3d432e2812138c2a029
MD5 8b51524be8cda7772a9e932d4df511e4
BLAKE2b-256 ce4f7392f7d97b85bdc1d5081830677a5b188bb491e31a6a78571c8a9ff847d8

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