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.gz
arxivit /path/to/paper/main.tex
# Convert images to JPEG at 300 DPI in the final PDF and save to dir /path/to/output
arxivit /path/to/paper/main.tex --dpi 300 --force-jpeg --output /path/to/output
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.5.0.tar.gz
(13.6 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.5.0.tar.gz.
File metadata
- Download URL: arxivit-0.5.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ecbdfee42eb5839568974a8379224bc050b617740467593f1ca92609972d95b
|
|
| MD5 |
8b8d8ac55f68a6ede47e61d21918ab39
|
|
| BLAKE2b-256 |
867992bf6c0a22d191173f1b9ef11def24091bc0b2c3f7615aed08b17585d1b7
|
File details
Details for the file arxivit-0.5.0-py3-none-any.whl.
File metadata
- Download URL: arxivit-0.5.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ddfcea6c70ae96691cd0456990ca2c0ff0d5289ddf1c707b5225b944ac9fd52
|
|
| MD5 |
942bfa6ed2df8c6b6403468bfc6ba96a
|
|
| BLAKE2b-256 |
198aade6decfb353acbe726bd9985b236cf797f0ac490da49ea6a145a804ea46
|