From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24900 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: serial definition Date: Tue, 03 Jan 2006 11:33:50 +0100 Message-ID: <43BA530E.2020203@gmx.net> References: <43B96ED1.8040409@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1136284497 23006 80.91.229.2 (3 Jan 2006 10:34:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 10:34:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 03 11:34:51 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EtjV5-0003TE-KZ for gctc-ntg-context-518@m.gmane.org; Tue, 03 Jan 2006 11:34:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7420612850; Tue, 3 Jan 2006 11:34:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22107-02; Tue, 3 Jan 2006 11:34:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 434B812849; Tue, 3 Jan 2006 11:34:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D1D2A12849 for ; Tue, 3 Jan 2006 11:34:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21849-05 for ; Tue, 3 Jan 2006 11:34:37 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by ronja.ntg.nl (Postfix) with SMTP id CEB3112843 for ; Tue, 3 Jan 2006 11:34:37 +0100 (CET) Original-Received: (qmail invoked by alias); 03 Jan 2006 10:34:37 -0000 Original-Received: from i577B96D2.versanet.de (EHLO [192.168.1.3]) [87.123.150.210] by mail.gmx.net (mp019) with SMTP; 03 Jan 2006 11:34:37 +0100 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: mailing list for ConTeXt users In-Reply-To: X-Enigmail-Version: 0.93.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24900 Archived-At: Henning Hraban Ramm wrote: ... > After some hacking I learned how \setvalue works: >=20 > > \def\Set#1#2#3{\setvalue{Key#1}{#2}\setvalue{Val#1}{#3}} > \def\Get#1{\getvalue{Key#1}/\getvalue{Val#1}} >=20 > \dostepwiserecurse{1}{9}{1}{ > \Set{\recurselevel}{K\recurselevel}{V\recurselevel} > } > \Set{1}{eins}{EINS} > \Set{2}{zwei}{ZWEI} >=20 > manually: \Get{1} -- \Get{2} -- \Get{3} >=20 > looping: > \dostepwiserecurse{1}{5}{1}{ > \Get{\recurselevel} -- > } > >=20 > results in: >=20 > manually: eins/EINS =96 zwei/ZWEI =96 K0/V0 > looping: eins/EINS =96 zwei/ZWEI =96 K3/V3 =96 K4/V4 =96 K5/V5 =96 >=20 > Why do I get K0/V0 for \Get{3}? - it works with \recurselevel! >=20 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 >=20 > Gr=FC=DFlis vom Hraban! > --- > http://www.fiee.net/texnique/ > http://contextgarden.net > http://www.cacert.org (I'm an assurer) >=20 > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >=20 >=20