From 41af2d87b0c8b66105abd8e7110781904fe0f092 Mon Sep 17 00:00:00 2001 From: William Underwood <42812654+WGUNDERWOOD@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:14:40 +0000 Subject: [PATCH] tex-fmt: add page (#15043) Co-authored-by: Wiktor Perskawiec --- pages/common/tex-fmt.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/tex-fmt.md 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`