mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/tex-fmt
Normal file
21
tldr/tex-fmt
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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`
|
||||
Reference in New Issue
Block a user