Hi Hraban, Hans, Taco,
I followed this thread with interest. By coincidence I was struggling
with this kind of problem during the last days. Thanks so much for this
educative example!
In my case I have to fill in a table with the information concerning
parcels to be sent. Some times there is a
(This mail was rejected as spam in my first try, and the reject
message was catched by my spam filter...)
Am 2006-01-03 um 11:51 schrieb Taco Hoekwater:
You need to expand the \Set commands in that first loop,
otherwise you store the literal token \recursevelel inside
the definitions of the Ke
Taco Hoekwater wrote:
Peter Rolf wrote:
Why do I get K0/V0 for \Get{3}? - it works with \recurselevel!
You need to expand the \Set commands in that first loop,
otherwise you store the literal token \recursevelel inside
the definitions of the Key and Val macros (\setvalue{}{}
autoexpands
Peter Rolf wrote:
Why do I get K0/V0 for \Get{3}? - it works with \recurselevel!
You need to expand the \Set commands in that first loop,
otherwise you store the literal token \recursevelel inside
the definitions of the Key and Val macros (\setvalue{}{}
autoexpands its first argument, but n
Henning Hraban Ramm wrote:
...
> After some hacking I learned how \setvalue works:
>
>
> \def\Set#1#2#3{\setvalue{Key#1}{#2}\setvalue{Val#1}{#3}}
> \def\Get#1{\getvalue{Key#1}/\getvalue{Val#1}}
>
> \dostepwiserecurse{1}{9}{1}{
> \Set{\recurselevel}{K\recurselevel}{V\recurselevel}
> }
> \Set{
Am 2006-01-02 um 19:20 schrieb Peter Rolf:
You can use \newcounter for such stuff or the context recurse
functions
(with \recurselevel).
I tried the following:
\dostepwiserecurse{1}{9}{1}{% count from 1 to 9, step 1
\def\lettersenderkey\recurselevel{}
\def\lettersenderval\recurselev
Hi ho Hraban,
Henning Hraban Ramm wrote:
> Hi ho!
>
> This is a part of Holger Schöner's letter style (see
> http://wiki.contextgarden.net/Letter_style):
>
> \def\lettersenderkeyone{}
> \def\lettersendervalone{}
> \def\lettersenderkeytwo{}
> \def\lettersendervaltwo{}
> % etc.
> \def\lettersender
Hi ho!
This is a part of Holger Schöner's letter style (see http://
wiki.contextgarden.net/Letter_style):
\def\lettersenderkeyone{}
\def\lettersendervalone{}
\def\lettersenderkeytwo{}
\def\lettersendervaltwo{}
% etc.
\def\lettersenderkeynine{}
\def\lettersendervalnine{}
\def\senderone#1#2{\de