[NTG-context] recursion/loop with counter?

Hans Hagen pragma at wxs.nl
Fri Jan 7 09:42:40 CET 2005


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
-----------------------------------------------------------------



More information about the ntg-context mailing list