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
\inputcommands in TeX files - Handles relative paths correctly
- Supports both
.texextension present or not in\inputcommands - 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
\inputfiles 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8115a514dcb2997976076189bef8b195c4b882df49ad332e580203b5e6924e81
|
|
| MD5 |
5f459d30031e88d0523fdc34f2f1aa9d
|
|
| BLAKE2b-256 |
c56dea7cb25230004e6b4e581c2fe9af970f9e21f522cd6b95f9912b623e8cfc
|
Provenance
The following attestation bundles were made for tex_minify-0.2.3.tar.gz:
Publisher:
release.yml on dwahdany/tex-minify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tex_minify-0.2.3.tar.gz -
Subject digest:
8115a514dcb2997976076189bef8b195c4b882df49ad332e580203b5e6924e81 - Sigstore transparency entry: 155649564
- Sigstore integration time:
-
Permalink:
dwahdany/tex-minify@375eaeb51ee72e73cc3e32966298825ecc6c9783 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/dwahdany
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@375eaeb51ee72e73cc3e32966298825ecc6c9783 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28c3a1f09f3f45d78dc8a26f9160bf6c26a489437fd6028245f24e5ee26f2b48
|
|
| MD5 |
67c5742326af51ff32ae56be8e61378d
|
|
| BLAKE2b-256 |
48c40421bdfc7f1f3071db7f15bdc8aa4601b4505fe177901b93b37ba79bc965
|
Provenance
The following attestation bundles were made for tex_minify-0.2.3-py3-none-any.whl:
Publisher:
release.yml on dwahdany/tex-minify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tex_minify-0.2.3-py3-none-any.whl -
Subject digest:
28c3a1f09f3f45d78dc8a26f9160bf6c26a489437fd6028245f24e5ee26f2b48 - Sigstore transparency entry: 155649566
- Sigstore integration time:
-
Permalink:
dwahdany/tex-minify@375eaeb51ee72e73cc3e32966298825ecc6c9783 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/dwahdany
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@375eaeb51ee72e73cc3e32966298825ecc6c9783 -
Trigger Event:
push
-
Statement type: