LinuxCommandLibrary

tex-fmt

TLDR

Format file

$ tex-fmt [document.tex]
copy
Format in place
$ tex-fmt -w [document.tex]
copy
Check formatting
$ tex-fmt --check [document.tex]
copy
Format from stdin
$ cat [document.tex] | tex-fmt
copy
With config
$ tex-fmt -c [tex-fmt.toml] [document.tex]
copy

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

Copied to clipboard