From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85615 Path: news.gmane.org!not-for-mail From: Jannik Voges Newsgroups: gmane.comp.tex.context Subject: Re: incrementing counters in tables Date: Tue, 10 Dec 2013 20:07:57 +0100 Message-ID: <0A16FC32-1778-4F35-841A-72979EBF5038@icloud.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: multipart/mixed; boundary="===============1677025267==" X-Trace: ger.gmane.org 1386702494 14461 80.91.229.3 (10 Dec 2013 19:08:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 19:08:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 10 20:08:21 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VqSfM-00087p-Qq for gctc-ntg-context-518@m.gmane.org; Tue, 10 Dec 2013 20:08:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1BBDB10229; Tue, 10 Dec 2013 20:08:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vWMFHSFMPWki; Tue, 10 Dec 2013 20:08:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9E4B010201; Tue, 10 Dec 2013 20:08:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DFFF10201 for ; Tue, 10 Dec 2013 20:08:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6NnkQWwGWnYj for ; Tue, 10 Dec 2013 20:08:10 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id EAAF2101F0 for ; Tue, 10 Dec 2013 20:08:10 +0100 (CET) Original-Received: from st11p05mm-asmtp003.mac.com (st11p05mm-asmtp003.mac.com [17.172.108.248]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rBAJHApg009503 for ; Tue, 10 Dec 2013 20:17:16 +0100 Original-Received: from [192.168.2.100] (p5B03A98C.dip0.t-ipconnect.de [91.3.169.140]) by st11p05mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0MXL008AKUHBPV40@st11p05mm-asmtp003.mac.com> for ntg-context@ntg.nl; Tue, 10 Dec 2013 19:08:02 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2013-12-10_06:2013-12-10,2013-12-10,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1312100130 In-reply-to: X-Mailer: Apple Mail (2.1822) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=17.172.108.248; country=US; region=CA; city=Cupertino; postalcode=95014; latitude=37.3042; longitude=-122.0946; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.3042,-122.0946&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KXThbyB - 82c008d98515 - 20131210 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85615 Archived-At: --===============1677025267== Content-type: multipart/signed; boundary="Apple-Mail=_2574DBB8-8BF6-4897-8624-FF76CE544381"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_2574DBB8-8BF6-4897-8624-FF76CE544381 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Thanks, that helps. Am 10.12.2013 um 19:55 schrieb Aditya Mahajan : > On Tue, 10 Dec 2013, Jannik Voges wrote: >=20 >> Dear ConTeXt-Users, >>=20 >>=20 >> I want to use counters in tables. But incrementing counters in tables = doesn=92t 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? >>=20 >> \definenumber[test] >>=20 >> \starttext >> \bTABLE >> \dorecurse{8}{ >> \bTR >> \dorecurse{5}{\bTD \rawcountervalue[test]\incrementnumber[test] = \eTD} >> \eTR >> } >> \eTABLE >> \stoptext >=20 > Change that to: >=20 > = \rawcountervalue[test]\iftrialtypesetting\else\incrementnumber[test]\fi >=20 > = Aditya____________________________________________________________________= _______________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_2574DBB8-8BF6-4897-8624-FF76CE544381 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJSp2aNAAoJECmq9C3tfCYr3BQQAIsL1EAYcvRbXymClDKaoYOp Bm/+zXAfhRgm/LuGxtybD3QKNWOtXKh6Corm9Vy4W1v3CvfJJsVsiaM3NsSEaXZV 3hXOT8pHOy72xOnoOIQaEsXJGCW92LygBZBszr2Ddj+oPZhFFcRBi8KKwGEDAYRm b0Z/qv2IXVh9zx7rObQ2exaeHeKDAQ/kcSPP/82JIWJ68jYhpE3x4DDn38oe52hq 0WUurzWa39rreOP9et/BpmGqPIhPYGs77AvgOyVeZvfhCXQHFN7rze67Z9q+gD7v o+3ajDj1hpLzDueSPkQYyqAYOJiurPMZ9JgQfFnc2RKiyFTs1EmrGg69ILUhSZkI FsfC7+RFDDiipMFTDPyOuVFmKWQaw23OuZHXWlEfZYEgVj+i/DG5WTzJxaLWzw/q S4dIGgBOR90wc0+c1wM2vymL/PQoWkHzE3XkE7M/XjEbEC3mzjnfHgvKw+II1DtF 22pnN3eFLWNKb0/lCl/WBWMHXYhRTJV9ErPtKhGPdt4qAVt/ycW8uD9MoBURfTyn KPN6xUzOxyFF8z+hxq5SYhm5Jsl4hxRv1w5IzoEb5Icsr5OFxNppNb/3u3qQrnuT NdgJGcTfQ8WN6hIu5jQ03BVHEwISMtDgV3GeqNoX3QKTgGskgodtJscdiwGHlVOI t/C7j6JmNryyuUG8DMBG =2Tos -----END PGP SIGNATURE----- --Apple-Mail=_2574DBB8-8BF6-4897-8624-FF76CE544381-- --===============1677025267== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1677025267==--