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.3.0.tar.gz
(13.3 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.3.0.tar.gz.
File metadata
- Download URL: arxivit-0.3.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a4278df1a52d2844805a2f9da35aa47d5f5cab5f72cf5d76d70431b643c86fa
|
|
| MD5 |
ead657f41caea69f84e91bc29d4b4a97
|
|
| BLAKE2b-256 |
a52920c6d17f988fccc052afd274fe9e925b352f57ba8c17561acbddfcdd051d
|
File details
Details for the file arxivit-0.3.0-py3-none-any.whl.
File metadata
- Download URL: arxivit-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39a63495db8099ca5e9540f7b34a41f4f4962b4455fb5e6dbdebad6cbe665c2d
|
|
| MD5 |
279e0e1b4ddd35e2f424a7ab6e64bb7a
|
|
| BLAKE2b-256 |
c5813526d2f11ae709d7472a130b6afc0a97db75fdcd06c2f459651e37c08e3e
|