https://github.com/firefly-cpp/latex-clean-fig
A tool that removes unused image files from a LaTeX project directory
https://github.com/firefly-cpp/latex-clean-fig
figures latex latex-template paper-submission
Last synced: 9 months ago
JSON representation
A tool that removes unused image files from a LaTeX project directory
- Host: GitHub
- URL: https://github.com/firefly-cpp/latex-clean-fig
- Owner: firefly-cpp
- License: mit
- Created: 2025-01-09T12:22:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-14T13:23:11.000Z (11 months ago)
- Last Synced: 2025-03-01T00:50:06.758Z (10 months ago)
- Topics: figures, latex, latex-template, paper-submission
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```sh
pip install latex-clean-fig
```
### How to use?
```sh
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 .
## 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!