Skip to main content

A CLI tool to clean unused figure files in LaTeX projects

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latex_clean_fig-0.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latex_clean_fig-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for latex_clean_fig-0.3.0.tar.gz
Algorithm Hash digest
SHA256 04dde56b15aa590a446c459b3b7d64ff21c6dc84445eb4a377f8162e5d113ff4
MD5 8acb85b6d801c52eb0de8aa2181d5b38
BLAKE2b-256 0ce8c134a66677e63af294531ce04c39df3452da9d59e9f0ea51d5ecf7ce0721

See more details on using hashes here.

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

Hashes for latex_clean_fig-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b2eca93b5d0e71b4b3a5a064cabfde46d8b33a0818f67637fe8dd7ef5072eae
MD5 d2450f28ccbb5a2a3c2bff68f2f46f37
BLAKE2b-256 51bc65b1e49bce28309fbfd69319ab317346a2d12472df2385792fa02de87e7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page