Skip to main content

latex-clean-fig

PyPI version PyPI - Python Version PyPI - Downloads Downloads latex-clean-fig

Repository size License GitHub commit activity Percentage of issues still open Average time to resolve an issue GitHub contributors

🎯 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!

Metadata

Release files for latex-clean-fig 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for latex-clean-fig 0.3.1
File Size Uploaded
latex_clean_fig-0.3.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for latex-clean-fig 0.3.1
File Interpreter ABI Platform
latex_clean_fig-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / latex_clean_fig-0.3.1.tar.gz

Download URL latex_clean_fig-0.3.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
535d2045d5d2f223ecafddc5635c55aae0e5ae44df75e1a3c32e6ffdd51787e5
BLAKE2b-256 checksum
How to use checksums
31c20a76dd57acaac1408f3667dd9fd9967b92d04089f260dff8b5d63c22c168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.14.7 Linux/7.1.10-200.fc44.x86_64

Release files / latex_clean_fig-0.3.1-py3-none-any.whl

Download URL latex_clean_fig-0.3.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81d45f4c938bccbce9f95ced3d8e6f0cb95362a04876beef4d57d62c5fe7bd06
BLAKE2b-256 checksum
How to use checksums
b38a4bcfec65954c6fd92dcf58584801ac3076e7cb19b6e45d07f2e7472f30bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.14.7 Linux/7.1.10-200.fc44.x86_64

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page