Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dvolgyes/bluetex

 
 

Repository files navigation

bluetex

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.

Install it from git for now.

Then, with

bluetex 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

bluetex -i in0.tex in1.tex ...

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

License

This software is published under the GPLv3 license.

About

Cleans up your LaTeX files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%