diff --git a/pages/common/tex-fmt.md b/pages/common/tex-fmt.md new file mode 100644 index 0000000000..61bbdf36e5 --- /dev/null +++ b/pages/common/tex-fmt.md @@ -0,0 +1,16 @@ +# 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`