New on CTAN: countwords
Date: April 5, 2026 1:41:49 PM CEST
Hugo Heagren submitted the
countwords
package.
Version: 1.0 2026-04-03
License: lppl1.3c
Summary description: Exact word counts, stored in LaTeX counters, using Lua
Announcement text:
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
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/countwords The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/latex/countwords/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
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
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/countwords The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/latex/countwords/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
countwords – Exact word counts, stored in LaTeX counters, using Lua
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 from https://gist.github.com/phi-gamma/2622252 .
| Package | countwords |
| Version | 1.0 2026-04-03 |
| Copyright | 2026 Hugo Heagren |
| Maintainer | Hugo Heagren |