xesearch is a string finder package for `XeTeX`; applications may be check spelling, word counting, and syntax highlighting of programming languages
8
votes
1answer
194 views
Word count and 'TeX capacity exceeded'
I use this piece of code in the preamble, obtained from Environment that counts words inside:
\usepackage{xesearch}
\newcounter{words}
\newenvironment{assignment}{%
\setcounter{words}{0}
...