1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:22:09 +02:00

tex-fmt: add page (#15043)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
William Underwood 2024-12-09 13:14:40 +00:00 committed by GitHub
parent 86961dea3c
commit 41af2d87b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
pages/common/tex-fmt.md Normal file
View file

@ -0,0 +1,16 @@
# 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`