Metadata-Version: 2.4
Name: blacktex
Version: 0.10.0
Summary: Clean up your LaTeX files
Author-email: Nico Schlömer <nico.schloemer@gmail.com>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://github.com/texworld/blacktex
Project-URL: Issues, https://github.com/texworld/blacktex/issues
Keywords: latex
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing
Classifier: Topic :: Text Processing :: Markup
Classifier: Topic :: Text Processing :: Markup :: LaTeX
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pylatexenc
Requires-Dist: stonefish-license-manager>=0.5.40
Requires-Dist: stonefish_runtime>=0.3.0

<p align="center">
  <a href="https://github.com/texworld/blacktex"><img alt="blacktex" src="https://texworld.github.io/blacktex/logo.svg" width="60%"></a>
  <p align="center">Clean up your LaTeX files.</p>
</p>

[![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 <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

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