Skip to main content

A simple tool to comment out packages not used in a latex document

Project description

stygtfo

A simple tool to comment out packages not used in a latex document.

Why? Because I usually experiment with packages a lot and in the end I don't use them all, but it's basically impossible to know which ones I don't use.

This pacakge compiles the document with every package commented out one by one, and compares the expected pdf output with the actual pdf output. If the pdf output is the same, the package is determined not used and commented out.

This package is not tested basically at all, and I only used tectonic to test it (beacuse the others are slow and don't garantee the packages are installed). It might not work with other engines. In fact, it probably won't. Maybe in the future I'll update it, but I doubt it. Fell free to fork it and make PRs.

Usage

stygtfo <pathToTexFile> [--output <outputfile>] [--engine <pathToEngine>] [--verbose <bool>] [--args <argsToPassToEngine>] [--temp <pathToTempDir>]

Currently, the --args option is not implemented, if some interest is shown I'm free to do it.

import stygtfo
stygtfo.CheckUnusedPackages("path/to/file.tex", "path/to/engin", usedPackages=None, resultedPath=None, verbose=False, pathToTemp=None)

Installation

pip install --user stygtfo

You will need the same requirements as diff-pdf-visually, which on Windows is ImageMagick and Poppler. You can get them on chocolatey too.

I don't know if the --user flag is actually needed, but I had some problems with it, so I recommend using it (except if you're installing it in a virtualenv).

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

stygtfo-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

stygtfo-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file stygtfo-0.1.0.tar.gz.

File metadata

  • Download URL: stygtfo-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.0 Windows/10

File hashes

Hashes for stygtfo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 adabc187508126abcf567e8cd0c754f507defbe0bb4157abbbb92f3a986b7e5a
MD5 003641c8ab7c1ac013c11d213026bdba
BLAKE2b-256 8b4b8e30cc0458bc8dbdb09b26cf03a09f13eda239a60489b7ab37b502831d7d

See more details on using hashes here.

File details

Details for the file stygtfo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stygtfo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.0 Windows/10

File hashes

Hashes for stygtfo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bacae09e14fd36333ff5dfb6c8b8282f20826bca65caf5d51b2651d8af8f1802
MD5 140f694cf3be4bb05c6ff0b30c59ada3
BLAKE2b-256 c549b88ba3ab9b086f61f4138a454d7783666cbe5e755eb93b35862513f5c95e

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