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.1.0.tar.gz (12.3 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.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tex_minify-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 a00b9776383b96ac153da8a5419372e037bfdcf2d19979640ff84958e9a9ac95
MD5 92a1ea457cce5e423cc360b776a44fae
BLAKE2b-256 4d13ed806b77fde2f3ea36e45c57887813d104e21ab4c1ab43229775aa1f1654

See more details on using hashes here.

Provenance

The following attestation bundles were made for tex_minify-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: tex_minify-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27a8d588a436396c827f576625d71ce7ba18e492258bd7e692f9788f2c7a5ad6
MD5 1f5a831cb0b98fefe220050701b2a28b
BLAKE2b-256 c852cbc54e1ab04f3760e5afeb78f5b1dd9eb8408ec32247b56b10452f80aceb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tex_minify-0.1.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