From: Jannik Voges <jannik.voges@icloud.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: incrementing counters in tables
Date: Tue, 10 Dec 2013 19:47:40 +0100 [thread overview]
Message-ID: <DA0C40FA-43C1-4DE0-99EE-D0FA8CD95D43@icloud.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 480 bytes --]
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
Thanks
Jannik Voges
[-- 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
___________________________________________________________________________________
next reply other threads:[~2013-12-10 18:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-10 18:47 Jannik Voges [this message]
2013-12-10 18:55 ` Aditya Mahajan
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=DA0C40FA-43C1-4DE0-99EE-D0FA8CD95D43@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).