Henning Hraban Ramm wrote:
...
> After some hacking I learned how \setvalue works:
>
> <TEX>
> \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{1}{eins}{EINS}
> \Set{2}{zwei}{ZWEI}
>
> manually: \Get{1} -- \Get{2} -- \Get{3}
>
> looping:
> \dostepwiserecurse{1}{5}{1}{
> \Get{\recurselevel} --
> }
> </TEX>
>
> results in:
>
> manually: eins/EINS – zwei/ZWEI – K0/V0
> looping: eins/EINS – zwei/ZWEI – K3/V3 – K4/V4 – K5/V5 –
>
> Why do I get K0/V0 for \Get{3}? - it works with \recurselevel!
>
Is this the TeX riddle of the week? Where is the camera? ;)
Sorry, I have no clue, so you better ask the wizzards...
Greetings, Peter
>
> Grüßlis vom Hraban!
> ---
> http://www.fiee.net/texnique/
> http://contextgarden.net
> http://www.cacert.org (I'm an assurer)
>
> _______________________________________________
> ntg-context mailing list
> [email protected]
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context