From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30458 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: How to \processcommalist inside another commalist? Date: Wed, 23 Aug 2006 22:43:08 +0200 Message-ID: <6faad9f00608231343q29e3a9c6s769ee546c910f69b@mail.gmail.com> References: <6faad9f00608210823p5beef0feia8b53c7ce734f83a@mail.gmail.com> <6faad9f00608211135r4639b3c5s3eda3346257fed90@mail.gmail.com> <44EA1FEA.3070804@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156365830 20026 80.91.229.2 (23 Aug 2006 20:43:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 20:43:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 23 22:43:39 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 1GFzZU-0001Lc-35 for gctc-ntg-context-518@m.gmane.org; Wed, 23 Aug 2006 22:43:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 394BB1FE6A; Wed, 23 Aug 2006 22:43:31 +0200 (CEST) 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 10451-05; Wed, 23 Aug 2006 22:43:18 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 501BD1FE39; Wed, 23 Aug 2006 22:43:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 60EC01FE39 for ; Wed, 23 Aug 2006 22:43:15 +0200 (CEST) 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 08862-06 for ; Wed, 23 Aug 2006 22:43:10 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ronja.ntg.nl (Postfix) with SMTP id 109D21FD26 for ; Wed, 23 Aug 2006 22:43:09 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id d4so423118nfe for ; Wed, 23 Aug 2006 13:43:09 -0700 (PDT) Original-Received: by 10.49.91.6 with SMTP id t6mr2589339nfl; Wed, 23 Aug 2006 13:43:09 -0700 (PDT) Original-Received: by 10.78.175.15 with HTTP; Wed, 23 Aug 2006 13:43:08 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <44EA1FEA.3070804@elvenkind.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30458 Archived-At: On 8/21/06, Taco Hoekwater wrote: > nico wrote: > > \def\arePrimeN[#1]{% > > \bgroup > > \getparameters[Prime][p=,#1] > > \expandafter\processcommalist\expandafter[\Primep]\printPrime > > \egroup} > > And an equivalent is > > \processcommacommand[\Primep]\printPrime On 8/21/06, Taco Hoekwater wrote: > Mojca Miklavec wrote: > > > > At the beginning the main reason against it was that I didn't know how > > to distinguish which kind of parameters are being used in the second > > pair of brackets, but I guess that I can safely use \ifnumberelse as a > > test on the first item to distinguish between the two. > > You could look up \doifassignmentelse in the sources. Thank you, the two commands (including Hans's additional hints) solved "all" my questions (for now.) Mojca