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:
parent
86961dea3c
commit
41af2d87b0
1 changed files with 16 additions and 0 deletions
16
pages/common/tex-fmt.md
Normal file
16
pages/common/tex-fmt.md
Normal 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`
|
Loading…
Add table
Reference in a new issue