Skip to main content

A CLI tool to expand \input commands in TeX files

Project description

tex-minify

A command-line tool to expand \input commands in TeX files.

Usage

Using uvx (no installation required)

# Basic usage (prints to stdout)
uvx tex-minify input.tex

# Save to output file
uvx tex-minify input.tex -o output.tex

# Specify base directory for \input resolution
uvx tex-minify input.tex --base-dir /path/to/tex/files -o output.tex

Using pip installation

First install:

pip install tex-minify

Then use:

tex-minify input.tex -o output.tex

Using pixi (for development)

# Setup development environment
pixi install
pixi run install

# Run the tool
pixi run tex-minify input.tex

Features

  • Recursively expands all \input commands in TeX files
  • Handles relative paths correctly
  • Supports both .tex extension present or not in \input commands
  • UTF-8 encoding support
  • Configurable base directory for input resolution

Error Handling

The tool will exit with a non-zero status code and display an error message if:

  • Input file is not found
  • Referenced \input files are not found
  • Output file cannot be written
  • Any other processing errors occur

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

tex_minify-0.2.3.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

tex_minify-0.2.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file tex_minify-0.2.3.tar.gz.

File metadata

  • Download URL: tex_minify-0.2.3.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tex_minify-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8115a514dcb2997976076189bef8b195c4b882df49ad332e580203b5e6924e81
MD5 5f459d30031e88d0523fdc34f2f1aa9d
BLAKE2b-256 c56dea7cb25230004e6b4e581c2fe9af970f9e21f522cd6b95f9912b623e8cfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tex_minify-0.2.3.tar.gz:

Publisher: release.yml on dwahdany/tex-minify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tex_minify-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: tex_minify-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tex_minify-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 28c3a1f09f3f45d78dc8a26f9160bf6c26a489437fd6028245f24e5ee26f2b48
MD5 67c5742326af51ff32ae56be8e61378d
BLAKE2b-256 48c40421bdfc7f1f3071db7f15bdc8aa4601b4505fe177901b93b37ba79bc965

See more details on using hashes here.

Provenance

The following attestation bundles were made for tex_minify-0.2.3-py3-none-any.whl:

Publisher: release.yml on dwahdany/tex-minify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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