CTAN Comprehensive TeX Archive Network

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 .

Sources/macros/luatex/latex/countwords
Documentation
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
TopicsWord count
Lua

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

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author