A CLI tool to clean unused figure files in LaTeX projects
Project description
latex-clean-fig
🎯 Motivation • 📦 Installation • 🔑 License
🎯 Motivation
The package provides a simple command-line tool to help authors clean up unused image files in a project directory before submitting a paper. Multiple versions of figures often accumulate in the folder during the writing process, making it cluttered and difficult to manage. This tool scans the LaTeX file for figures included using the \includegraphics command and compares them against the image files in the specified folder. It identifies unused images and removes them, leaving only the files referenced in the LaTeX document. This is especially useful for ensuring the project directory remains tidy and submission-ready.
📦 Installation
pip
Install latex-clean-fig with pip:
pip install latex-clean-fig
How to use?
clean-fig TEX_FILE FOLDER
where:
TEX_FILE: Path to your LaTeX file.FOLDER: Path to the folder containing image files.
This will scan TEX_FILE for included figures and remove any unused image files from the FOLDER directory.
🔑 License
This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.
Disclaimer
This package is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!
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
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 latex_clean_fig-0.3.0.tar.gz.
File metadata
- Download URL: latex_clean_fig-0.3.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.14.2 Linux/6.18.7-200.fc43.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04dde56b15aa590a446c459b3b7d64ff21c6dc84445eb4a377f8162e5d113ff4
|
|
| MD5 |
8acb85b6d801c52eb0de8aa2181d5b38
|
|
| BLAKE2b-256 |
0ce8c134a66677e63af294531ce04c39df3452da9d59e9f0ea51d5ecf7ce0721
|
File details
Details for the file latex_clean_fig-0.3.0-py3-none-any.whl.
File metadata
- Download URL: latex_clean_fig-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.14.2 Linux/6.18.7-200.fc43.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b2eca93b5d0e71b4b3a5a064cabfde46d8b33a0818f67637fe8dd7ef5072eae
|
|
| MD5 |
d2450f28ccbb5a2a3c2bff68f2f46f37
|
|
| BLAKE2b-256 |
51bc65b1e49bce28309fbfd69319ab317346a2d12472df2385792fa02de87e7d
|