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.0.tar.gz (14.2 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.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tex_minify-0.2.0.tar.gz
  • Upload date:
  • Size: 14.2 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.0.tar.gz
Algorithm Hash digest
SHA256 ea41506cb7d14f2b2c1de09a04a41476136451ca96029caf907a1033bd6980cc
MD5 592b74eb96e9079d6edc53f29db8d9ca
BLAKE2b-256 41b2262e74b752253e0c85604958cc01ab8e0a6e7dbcad3140252a9d4beee065

See more details on using hashes here.

Provenance

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

Publisher: publish.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.0-py3-none-any.whl.

File metadata

  • Download URL: tex_minify-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd58d8488a0daa957c48d3386799517ae63a55249142b7dd4ce4d12b1f6aa58f
MD5 1c82d0c93135c7a032e7c6e23d158d1f
BLAKE2b-256 a48faf3577296ebb9593ba63df7ba41ae4e2e61a49d30f94476bbb2741c3e018

See more details on using hashes here.

Provenance

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

Publisher: publish.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