tex-fmt
TLDR
Format file
$ tex-fmt [document.tex]
Format in place$ tex-fmt -w [document.tex]
Check formatting$ tex-fmt --check [document.tex]
Format from stdin$ cat [document.tex] | tex-fmt
With config$ tex-fmt -c [tex-fmt.toml] [document.tex]
SYNOPSIS
tex-fmt [-w] [--check] [-c config] [options] files
DESCRIPTION
tex-fmt formats LaTeX files. It standardizes whitespace.
Consistent indentation. Clean formatting.
Check mode for CI. Verify without changing.
Configurable rules. Customize style.
Fast formatting. Rust implementation.
PARAMETERS
-w
Write in place.--check
Check only.-c FILE
Config file.--stdin
Read stdin.--tabsize N
Tab size.
CAVEATS
LaTeX specific. May break manual formatting. Test before use.
HISTORY
tex-fmt is a fast LaTeX formatter written in Rust for consistent document formatting.
SEE ALSO
latexindent(1), latex(1), pdflatex(1)


