From: Jannik Voges <jannik.voges@icloud.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: incrementing counters in tables
Date: Tue, 10 Dec 2013 20:07:57 +0100 [thread overview]
Message-ID: <0A16FC32-1778-4F35-841A-72979EBF5038@icloud.com> (raw)
In-Reply-To: <alpine.LNX.2.03.1312101354440.29218@hzvpu.rqh>
[-- Attachment #1.1: Type: text/plain, Size: 1269 bytes --]
Thanks, that helps.
Am 10.12.2013 um 19:55 schrieb Aditya Mahajan <adityam@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@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
> ___________________________________________________________________________________
[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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
___________________________________________________________________________________
prev parent reply other threads:[~2013-12-10 19:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-10 18:47 Jannik Voges
2013-12-10 18:55 ` Aditya Mahajan
2013-12-10 19:07 ` Jannik Voges [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0A16FC32-1778-4F35-841A-72979EBF5038@icloud.com \
--to=jannik.voges@icloud.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).