tex-fmt
Formatea el código fuente LaTeX. Más información: https://github.com/WGUNDERWOOD/tex-fmt.
tex-fmt {{ruta/al/archivo.tex}}
tex-fmt --check {{ruta/al/archivo.tex}}
stdin
y lo imprime en stdout
:cat {{ruta/al/archivo.tex}} | tex-fmt --stdin