Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/texworld/blacktex
:black_heart: Cleans up your LaTeX files.
https://github.com/texworld/blacktex
latex linter
Last synced: 5 days 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 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T14:39:14.000Z (12 months ago)
- Last Synced: 2024-12-31T15:10:13.603Z (12 days ago)
- Topics: latex, linter
- Homepage:
- Size: 281 KB
- Stars: 151
- Watchers: 5
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - texworld/blacktex
README
Clean up your LaTeX files.
[![PyPi Version](https://img.shields.io/pypi/v/blacktex.svg?style=flat-square)](https://pypi.org/project/blacktex/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/blacktex.svg?style=flat-square)](https://pypi.org/project/blacktex/)
[![GitHub stars](https://img.shields.io/github/stars/texworld/blacktex.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/texworld/blacktex)
[![PyPi downloads](https://img.shields.io/pypi/dm/blacktex.svg?style=flat-square)](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 [email protected].
## 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.