LinuxCommandLibrary

texcount

Count words in TeX documents omitting macros.

TLDR

Count words in a TeX file

$ texcount [path/to/file.tex]
copy


Count words in a document and subdocuments built with \input or \include
$ texcount -merge [file.tex]
copy


Count words in a document and subdocuments, listing each file separately (and a total count)
$ texcount -inc [file.tex]
copy


Count words with verbose output
$ texcount -v [path/to/file.tex]
copy

Copied to clipboard