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.2.0.tar.gz (3.6 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.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file latex_clean_fig-0.2.0.tar.gz.

File metadata

  • Download URL: latex_clean_fig-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.14.2 Linux/6.18.5-200.fc43.x86_64

File hashes

Hashes for latex_clean_fig-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0946b1316987393cc1f5d53cdbf8bea6aa1d0d6d066fbaf070d2a7806053ca5
MD5 c6aaa0cbfba69602d66e82c909fa2303
BLAKE2b-256 0af0d10a94f56cc8295542e8baa907c802a57820ea04832be32eb6765d3a9f64

See more details on using hashes here.

File details

Details for the file latex_clean_fig-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: latex_clean_fig-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.14.2 Linux/6.18.5-200.fc43.x86_64

File hashes

Hashes for latex_clean_fig-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 808a99abd732ffb76b332768975d60639c4e028ba63d93e253b99de949bd62d8
MD5 2438a0a14a0c317b40b50e3ce01e1077
BLAKE2b-256 0354a95cddc730bdbd881ba2ea577c05f7be3955db23fe03ec90c9be395d0715

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