1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 02:02:07 +02:00
tldr/pages/common/tex-fmt.md
William Underwood 41af2d87b0
tex-fmt: add page (#15043)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-12-09 14:14:40 +01:00

364 B

tex-fmt

Format LaTeX source code. More information: https://github.com/WGUNDERWOOD/tex-fmt.

  • Format a file, overwriting the original:

tex-fmt {{path/to/file.tex}}

  • Check if a file is correctly formatted:

tex-fmt --check {{path/to/file.tex}}

  • Format a file read from stdin and print to stdout:

cat {{path/to/file.tex}} | tex-fmt --stdin