CmdID / Commands
tex-fmt
Format LaTeX source code. tldr-pages
On several platforms
Format a file, overwriting the original
Check if a file is correctly formatted
tex-fmt --check path/to/file.texIdentify
Format a file read from stdin and print to stdout
cat path/to/file.tex | tex-fmt --stdinIdentify