[texhax] Howto Count tokens
Donald Arseneau
asnd at triumf.ca
Wed Sep 19 23:04:09 CEST 2007
Tim Dijkstra <newsuser at famdijkstra.org> writes:
> I have a register created with \newtoks\list, it's content is roughly
NO NO NO!!!
\list is already taken!
\begin{list}
In answer the the question, use \global\advance, and put it all in
\setbox\@tempboxa\hbox{\global\mycount=0\relax
\def\mysep#1{\global\advance\mycount1\relax}%
\the\listofwhatever}
--
Donald Arseneau asnd at triumf.ca
More information about the texhax
mailing list