diff --git a/tldr/tex-fmt b/tldr/tex-fmt new file mode 100644 index 00000000..621925c0 --- /dev/null +++ b/tldr/tex-fmt @@ -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: . + +- 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`