tex-fmt

Ultra-fast LaTeX formatter and code beautifier written in Rust.

brewmacoslinux
Try with needOr install directly
Source

About

Extremely fast LaTeX formatter written in Rust

Commands

tex-fmt

Examples

format a LaTeX file and fix whitespace$ tex-fmt myfile.tex
format LaTeX file and save changes in place$ tex-fmt --check myfile.tex && tex-fmt myfile.tex
format all LaTeX files in a directory$ tex-fmt *.tex
format LaTeX and print to stdout without modifying file$ tex-fmt --check myfile.tex
format entire LaTeX project directory recursively$ find . -name '*.tex' -exec tex-fmt {} +