[NTG-context] incrementing counters in tables

Aditya Mahajan adityam at umich.edu
Tue Dec 10 19:55:52 CET 2013


On Tue, 10 Dec 2013, Jannik Voges wrote:

> Dear ConTeXt-Users,
>
>
> I want to use counters in tables. But incrementing counters in tables doesn’t work as expected. For example, when I typeset the following example, I get numbers between 80 and 119, I would expect numbers between 0 and 39. How can I get the desired numbers?
>
> \definenumber[test]
>
> \starttext
> \bTABLE
> \dorecurse{8}{
> 	\bTR
> 	\dorecurse{5}{\bTD \rawcountervalue[test]\incrementnumber[test] \eTD}
> 	\eTR
> }
> \eTABLE
> \stoptext

Change that to:

\rawcountervalue[test]\iftrialtypesetting\else\incrementnumber[test]\fi

Aditya


More information about the ntg-context mailing list