[NTG-context] incrementing counters in tables

Jannik Voges jannik.voges at icloud.com
Tue Dec 10 20:07:57 CET 2013


Thanks, that helps.


Am 10.12.2013 um 19:55 schrieb Aditya Mahajan <adityam at umich.edu>:

> 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___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20131210/13d5a221/attachment.pgp>


More information about the ntg-context mailing list