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.2.0.tar.gz
(13.1 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.2.0.tar.gz.
File metadata
- Download URL: arxivit-0.2.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc150a63d1b09b7b03b5af93863af1055a7fe8f953ec356b9471683f59ddc86
|
|
| MD5 |
b0a910c8dedda311730ca077333fea3f
|
|
| BLAKE2b-256 |
a115d656a93b1320514f0c683e09978baefa4371e888fa845d22673f86373d42
|
File details
Details for the file arxivit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: arxivit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c8c5141e5e9981f00e919c552b0871e6db4329e0ad09f1c3f297b4c2c6c20d2
|
|
| MD5 |
b7c49f14b1c8eef7c27d03a83d15d712
|
|
| BLAKE2b-256 |
9a4038c8357b2698f1c7b93a26d43fb9020509989a3132c6a164923f76d8603e
|