From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: incrementing counters in tables
Date: Tue, 10 Dec 2013 13:55:52 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.03.1312101354440.29218@hzvpu.rqh> (raw)
In-Reply-To: <DA0C40FA-43C1-4DE0-99EE-D0FA8CD95D43@icloud.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 628 bytes --]
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
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-12-10 18:55 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 [this message]
2013-12-10 19:07 ` Jannik Voges
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=alpine.LNX.2.03.1312101354440.29218@hzvpu.rqh \
--to=adityam@umich.edu \
--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).