From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17775 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: recursion/loop with counter? Date: Fri, 07 Jan 2005 09:42:40 +0100 Message-ID: <41DE4B80.9090209@wxs.nl> References: <7F99F590-5FE6-11D9-8818-0030659899AA@fiee.net> <41DD4DFC.4070206@wxs.nl> <192E4394-601A-11D9-AD4B-0030659899AA@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105087369 8947 80.91.229.6 (7 Jan 2005 08:42:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2005 08:42:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 07 09:42:43 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cmphj-0004hN-00 for ; Fri, 07 Jan 2005 09:42:43 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF44B127A8; Fri, 7 Jan 2005 09:42:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05222-07-4; Fri, 7 Jan 2005 09:42:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 015BF1279A; Fri, 7 Jan 2005 09:42:41 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0E2C1279A for ; Fri, 7 Jan 2005 09:42:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05222-07-3 for ; Fri, 7 Jan 2005 09:42:39 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 5E9A212797 for ; Fri, 7 Jan 2005 09:42:39 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j078gbi0000331 for ; Fri, 7 Jan 2005 09:42:37 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 454C320F58; Fri, 7 Jan 2005 09:38:29 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id EBC4017B14 for ; Fri, 7 Jan 2005 08:38:27 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <192E4394-601A-11D9-AD4B-0030659899AA@fiee.net> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17775 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17775 Henning Hraban Ramm wrote: > Am 06.01.2005 um 15:41 schrieb Hans Hagen: > >> \dorecurse{20} >> {\bTR \expanded{\bTD \recurselevel bottles of beer \eTD} \bTD \strut >> \eTD \eTR} > > > But what if I need it in a call to some function like: > > \dorecurse{10}{\SkillField{Skill\expanded\recurselevel}} \dorecurse{10}{\expanded{\SkillField{Skill\recurselevel}}} \expanded is one of the more interesting commands, it does *not* expand the \SkillField, only what comes after it \startexpanded ... \stopexpanded does expand everything, Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------