CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/countwords

README
This is a simple package for generating exact wordcounts in LaTeX
projects. It counts words, storing the value in a standard LaTeX
counter, which can then be printed in the normal way. Word counting
can be paused and resumed, so you can skip certain environments like
mathematics, and multiple word counts can happen in parallel (you
could keep separate global and per-chapter counts, for example).

The word counting engine itself is pulled entirely from
https://gist.github.com/phi-gamma/2622252

Hugo Heagren <hugo@heagren.com>

This material is subject to the LaTeX Project Public License 1.3c.

Download the contents of this package in one zip archive (383.2k).

countwords – Exact word counts, stored in counters, using Lua

This is a simple package for generating exact wordcounts in projects. It counts words, storing the value in a standard counter, which can then be printed in the normal way. Word counting can be paused and resumed, so you can skip certain environments like mathematics, and multiple word counts can happen in parallel (you could keep separate global and per-chapter counts, for example).

The word counting engine itself is pulled from https://gist.github.com/phi-gamma/2622252 .

Packagecountwords
Bug trackerhttps://github.com/Hugo-Heagren/countwords/issues
Repositoryhttps://github.com/Hugo-Heagren/countwords
Version1.0 2026-04-03
LicensesThe Project Public License 1.3c
Copyright2026 Hugo Heagren
MaintainerHugo Heagren
Contained inTeX Live as countwords
TopicsLua
Word count
...
Guest Book Sitemap Contact Contact Author