Clean up your LaTeX files.
Fork Notice
Bluetex is a fork of the original Blacktex project by Nico Schlömer. The original project moved to a non-public development style, so this fork was created to continue public development under the name "Bluetex" to avoid confusion with the original project.
- Original author: Nico Schlömer (up to commit 9df96918bd9075ddd659a9e272e16c6426011e31, 2022-02-16)
- Fork maintainer: David Völgyes (from 2025 onwards)
- Original project: https://github.com/texworld/blacktex/
Bluetex is a command-line tool that helps with article editing in LaTeX. It removes all comments from a given file and corrects some common anti-patterns.
Usage
Run the package directly with uvx:
uvx bluetex in.tex > out.tex
For example, this input file
Because of $$a+b=c$$ ({\it Pythogoras}),
% @johnny remember to insert name
and $y=2^ng$ with $n=1,...,10$, we have ${\Gamma \over 2}=8.$
is converted to
Because of
\[
a+b = c
\]
(\textit{Pythogoras}),
and \(y = 2^n g\) with \(n = 1,\dots,10\), we have \(\frac{\Gamma}{2} = 8\).
You can use
uvx bluetex -i in0.tex in1.tex ...
to modify files in-place. See uvx bluetex --help for all options.
Pre-commit hooks
You can clean LaTeX files automatically before committing them to git.
repos:
- repo: https://github.com/dvolgyes/bluetex
rev: v0.6.2
hooks:
- id: bluetex
The hook runs bluetex --in-place on staged .tex files.
License
This software is published under the GPLv3 license.
Metadata
Release files for bluetex 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bluetex-0.6.2.tar.gz | 34.2 kB | Without provenance | Details for bluetex-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bluetex-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for bluetex-0.6.2-py3-none-any.whl |
Total release size: 57.9 kB
Release files / bluetex-0.6.2.tar.gz
| Download URL | bluetex-0.6.2.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1839cf31a2a3c7318ad08a1e22bb662cb55ea635c83f734d64963dd0c922edfc
|
|
BLAKE2b-256 checksum How to use checksums |
d8191878ccd13016d7e3ed96182854e2a182b95e4d1056ea4e755c89f383c33e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / bluetex-0.6.2-py3-none-any.whl
| Download URL | bluetex-0.6.2-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
253a5fdad6eb68d14bd7f016a1e9c05300fd82447acd0fc3938f11b6639eeeaf
|
|
BLAKE2b-256 checksum How to use checksums |
894bd522c4c422cf7e7daba481d52e6b6361fb77a2331c264ee569ac19f2a8b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for bluetex 0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.