From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81198 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \recurselevel inside \bTABLE\eTABLE Date: Sun, 17 Mar 2013 23:15:43 +0100 Message-ID: References: <7D8B2708-F031-462D-924F-FD05FA7544F7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363558557 28150 80.91.229.3 (17 Mar 2013 22:15:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Mar 2013 22:15:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 17 23:16:23 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UHLsG-0000Av-PA for gctc-ntg-context-518@m.gmane.org; Sun, 17 Mar 2013 23:16:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90D81101F9; Sun, 17 Mar 2013 23:15:53 +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 KD1XLYTTLDMZ; Sun, 17 Mar 2013 23:15:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EB0A0101EB; Sun, 17 Mar 2013 23:15:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 036D0101EB for ; Sun, 17 Mar 2013 23:15:50 +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 HckJLDylNvgT for ; Sun, 17 Mar 2013 23:15:49 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 096C5101E3 for ; Sun, 17 Mar 2013 23:15:48 +0100 (CET) Original-Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2HMFkKZ029582 for ; Sun, 17 Mar 2013 23:15:46 +0100 Original-Received: by mail-ee0-f45.google.com with SMTP id b57so2294190eek.4 for ; Sun, 17 Mar 2013 15:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=1mPYORvAZeF9TT1I8jqkDFFO7BZSNAK4y+gQYfVvWoY=; b=lmDMrozEgQ1uXSw8G/1w+HmyWTSaM+DX/DzU5lUHyN9FCyiUmQptEzNJvV1w9n0efa jFZCr0AL1TSG1LCkELwDjWvYpbC+xlRqrdaTECOEK7kQoWdAvC+eq53dEo7fm9Y0gh3D Cb6CTXNmyx7jaRBQvxm3DJrRI6U3hPMnqcGZMb0WSFHZ4YW2W3qiHRAIS5/Ru3EcRgZw u4vdA1KBS1hKRcfuAgJmlqyNLnkpv+UJsh4lMlTJPHA6JxkVvVp+2WG+aoUyIwZQtvQj zVaQAQ8fQvHWhblWAPOMmUBLWOJbRAtxKz0BtrHo2bNzScPODNOEmtKAdhxk1mFbTkL8 ayqg== X-Received: by 10.14.223.69 with SMTP id u45mr42480446eep.23.1363558545973; Sun, 17 Mar 2013 15:15:45 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d07311d.pool.mediaWays.net. [77.7.49.29]) by mx.google.com with ESMTPS id u44sm23716380eel.7.2013.03.17.15.15.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Mar 2013 15:15:44 -0700 (PDT) In-Reply-To: <7D8B2708-F031-462D-924F-FD05FA7544F7@gmail.com> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08JcKfKbl - e0ebc6f8c76f - 20130317 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:81198 Archived-At: Am 17.03.2013 um 22:17 schrieb Wolfgang Schuster : > = > Am 17.03.2013 um 13:00 schrieb Willi Egger : > = >> Dear all, >> = >> I should prepare a form with a table. The table rows should be numbered. = >> = >> How can I get get this done by using \recurselevel. >> In the attached minimal example all rows are numbered with 0. >> = >> \starttext >> \subject{bTABLE--eTABLE: recurse creates rows} >> \bTABLE >> \dorecurse{3} >> {\bTR >> \bTD \recurselevel \eTD >> \eTR} >> \eTABLE >> = >> What do i do wrongly here? = > = > You=92re doing nothing wrong but you have to expand the value of the coun= ter. > = > One feature of natural tables is the calculated width of the cells, to do= this context stores > the content of all cells in a token register, i.e. context stores \recurs= elevel as content > of the cell and not the value of the iteration. This content is processed= after all cells > have been stored and the \recurselevel macro uses at this moment its defa= ult value 0. > = > To expand the value of the counter use \expanded{=85} to force a expansio= n. > = > \bTABLE > \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR} > \eTABLE Needs \expanded: \bTABLE \dorecurse{3}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR} \eTABLE Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________