I'm wondering if it is possible to exclude ExPex code from being counted by texcount? At the moment I'm writing a thesis with lots of linguistic examples, but I need to exclude these from the total word count. So far I've been surrounding each example with %TC:ignore...%TC:endignore
. For instance (MWE):
\documentclass{article}
\usepackage{expex}
\begin{document}
TexCount correctly counts five words.
%TC:ignore
\ex
\begingl
\gla foo bar//
\glb gloss1 gloss2//
\glft `Translation of the sentence.'//
\endgl
\xe
%TC:endignore
\end{document}
I've tried using %TC:envir ex [] text
and other variations (including %TC:group
), but they do not work (for me). I would be grateful if anyone could tell me how to get this working. It's not totally essential, as the manual method works fine (I've got a snippet set up that generates an expex template surrounded by %TC:ignore...%TC:endignore
), but my files would be a little cleaner if I didn't have to have these at every example (of which there are lots).
From my understanding, ExPex begins a group with \ex
or \pex
. However, I just can't get texcount to recognise this group. Any help would be greatly appreciated!