https://github.com/texworld/blacktex
:black_heart: Cleans up your LaTeX files.
https://github.com/texworld/blacktex
latex linter
Last synced: 3 months ago
JSON representation
:black_heart: Cleans up your LaTeX files.
- Host: GitHub
- URL: https://github.com/texworld/blacktex
- Owner: texworld
- Created: 2018-06-13T11:01:25.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T14:39:14.000Z (about 2 years ago)
- Last Synced: 2025-04-02T12:11:16.184Z (11 months ago)
- Topics: latex, linter
- Homepage:
- Size: 281 KB
- Stars: 152
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - texworld/blacktex
- awesome-thesis-tools - blackTeX - U blacktex**\]: corrects some common [TeX anti-patterns](https://ctan.mirror.norbert-ruehl.de/info/l2tabu/english/l2tabuen.pdf) (LaTeX & PDF)
README
Clean up your LaTeX files.
[](https://pypi.org/project/blacktex/)
[](https://pypi.org/project/blacktex/)
[](https://github.com/texworld/blacktex)
[](https://pypistats.org/packages/blacktex)
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](http://mirrors.ctan.org/info/l2tabu/english/l2tabuen.pdf).
### Installation
Install blacktex [from PyPI](https://pypi.org/project/blacktex/) with
```
pip install blacktex
```
### How to get a license
TeX World licenses for personal and academic use can be purchased
[here](https://buy.stripe.com/aEU7vb9xc870f1mbIL).
You'll receive a confirmation email with a license key.
Install the key with
```
slim install
```
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
```latex
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
```latex
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.