From 909998dcf5cfe6246577684971a43ec5379e4f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=BCller?= <30127149+blackapple113@users.noreply.github.com> Date: Thu, 31 Aug 2023 08:00:41 +0200 Subject: [PATCH] texcount: add page (#10625) texcount is a command line tool that comes with TeX Live preinstalled. It counts words in TeX files or TeX document structures while omitting macros. Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/texcount.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/texcount.md diff --git a/pages/common/texcount.md b/pages/common/texcount.md new file mode 100644 index 000000000..eeafe44aa --- /dev/null +++ b/pages/common/texcount.md @@ -0,0 +1,21 @@ +# texcount + +> Count words in TeX documents omitting macros. +> Note: if the TeX document uses `\include` or `\input` and you want to count the included files, `texcount` must be run in the directory of the root TeX file. +> More information: . + +- Count words in a TeX file: + +`texcount {{path/to/file.tex}}` + +- Count words in a document and subdocuments built with `\input` or `\include`: + +`texcount -merge {{file.tex}}` + +- Count words in a document and subdocuments, listing each file separately (and a total count): + +`texcount -inc {{file.tex}}` + +- Count words with verbose output: + +`texcount -v {{path/to/file.tex}}`