From dccccbf6fe4b0bc9b5db305ecc994c217350e415 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 10 Dec 2024 00:19:17 +0000 Subject: [PATCH] Update cheatsheets --- tldr/tex-fmt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tldr/tex-fmt 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`