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:
- 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.
- 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
latexmkto compile the LaTeX source code. - It analyzes the compilation log to determine which
.texfiles 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
latexpandto strip comments from.texfiles.
Related Projects
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e68e5ab7dc62ba6ef2c9843eee6610c8541528c0993961cbddeb7cb0fd65a64
|
|
| MD5 |
9040ef9b69cacb0dd47d3a156dc861de
|
|
| BLAKE2b-256 |
3bd87720ef0eaf34777cde2c2bc832b2f73d07d0b67ee31349c1babac2813389
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6144bf8d88715e736d021c6466ab6498661caa27a8e3f3d432e2812138c2a029
|
|
| MD5 |
8b51524be8cda7772a9e932d4df511e4
|
|
| BLAKE2b-256 |
ce4f7392f7d97b85bdc1d5081830677a5b188bb491e31a6a78571c8a9ff847d8
|