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: <https://app.uio.no/ifi/texcount/howto.html>.

Install

All systems
curl cmd.cat/texcount.sh
Debian Debian
apt-get install texlive-extra-utils
Ubuntu
apt-get install texlive-extra-utils
Arch Arch Linux
pacman -S texlive-texcount-7
image/svg+xml Kali Linux
apt-get install texlive-extra-utils
Fedora
dnf install texlive-texcount-7
Windows (WSL2)
sudo apt-get update sudo apt-get install texlive-extra-utils
Raspbian
apt-get install texlive-extra-utils

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: <https://app.uio.no/ifi/texcount/howto.html>.

  • 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

© tl;dr; authors and contributors