Files
cheatsheet-tldr/tldr/tex-fmt
2024-12-10 00:19:17 +00:00

22 lines
457 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`