Skip to main content

blacktex

Clean up your LaTeX files.

PyPi Version PyPI pyversions GitHub stars PyPi downloads

blacktex 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.

Installation

Install blacktex from PyPI with

pip install blacktex

How to get a license

TeX World licenses for personal and academic use can be purchased here. You'll receive a confirmation email with a license key. Install the key with

slim install <your-license-file>

on your machine and you're good to go.

For commercial use, please contact support@mondaytech.com.

Using blacktex

With

blacktex in.tex > out.tex

the 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

blacktex -i in0.tex in1.tex ...

to modify files in-place. See blacktex -h for all options.

Release files for blacktex 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for blacktex 0.10.0
File
blacktex-0.10.0-cp313-none-any.whl CPython 3.13 none any Details
blacktex-0.10.0-cp312-none-any.whl CPython 3.12 none any Details
blacktex-0.10.0-cp311-none-any.whl CPython 3.11 none any Details
blacktex-0.10.0-cp310-none-any.whl CPython 3.10 none any Details

Total release size: 86.4 kB

Release files / blacktex-0.10.0-cp313-none-any.whl

Download URL blacktex-0.10.0-cp313-none-any.whl
Size 23.2 kB
Tags CPython 3.13
SHA-256 checksum
How to use checksums
26be546e9b5f9dc7399718b4a03654aa91f9cfe9aa605e28177c246608bf400e
BLAKE2b-256 checksum
How to use checksums
039d6baed5499524c1ba1d81d7113e4139c2dd0b609875ebf503c6aaece489a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2025.

Transparency log

Release files / blacktex-0.10.0-cp312-none-any.whl

Download URL blacktex-0.10.0-cp312-none-any.whl
Size 23.0 kB
Tags CPython 3.12
SHA-256 checksum
How to use checksums
7974a06c13f458b394aa033d91e2827a8c4e28de0c5900d70d4730700b794986
BLAKE2b-256 checksum
How to use checksums
c0ee200eec2a8e13459dd0d9f887da38eb516db0321d24c2c2a5e145ffe0d1b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2025.

Transparency log

Release files / blacktex-0.10.0-cp311-none-any.whl

Download URL blacktex-0.10.0-cp311-none-any.whl
Size 24.9 kB
Tags CPython 3.11
SHA-256 checksum
How to use checksums
a998f168ae7b8ab68eabc5f16604a4c75997a66d26d87d2889cb7573d60ad90e
BLAKE2b-256 checksum
How to use checksums
67ed38575ace3548371a0c6aa02973bc6470251fc2e0a8f1b12ac32e701a1671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2025.

Transparency log

Release files / blacktex-0.10.0-cp310-none-any.whl

Download URL blacktex-0.10.0-cp310-none-any.whl
Size 15.3 kB
Tags CPython 3.10
SHA-256 checksum
How to use checksums
4148b419fe63905bb74e27c6ae884d44b0b80ec3c8d7a1eba5b19aff5fe9e5b3
BLAKE2b-256 checksum
How to use checksums
0aff68b742f618b269fa5b633b6e72deda7e5a40fd0ef4abdbc76f992876ffd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.10.0 This release

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page