From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76775 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: expansion and \processaction Date: Thu, 7 Jun 2012 18:55:25 +0200 Message-ID: <05007B09-E839-4AD4-80FC-C32A4B89DAC1@googlemail.com> References: <20120607120526.GA4444@phlegethon> <512FF611-2B42-42FA-8539-8D3F8585E687@googlemail.com> <20120607153438.GB4444@phlegethon> <8081DB5E-972F-4734-A808-FA213429B2C7@googlemail.com> <4FD0D3CB.2020103@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339088146 10324 80.91.229.3 (7 Jun 2012 16:55:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jun 2012 16:55:46 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 07 18:55:45 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Scfzo-0005D6-Lq for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jun 2012 18:55:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91FC8101DD; Thu, 7 Jun 2012 18:55:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xgrz93AiFFNk; Thu, 7 Jun 2012 18:55:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28A04101E0; Thu, 7 Jun 2012 18:55:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 73E00101E0 for ; Thu, 7 Jun 2012 18:55:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bB7U4cHGa0N7 for ; Thu, 7 Jun 2012 18:55:35 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BDB59101DD for ; Thu, 7 Jun 2012 18:55:35 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q57GtYB3021979 for ; Thu, 7 Jun 2012 18:55:34 +0200 Original-Received: by bkcjm19 with SMTP id jm19so1079507bkc.14 for ; Thu, 07 Jun 2012 09:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=HeyOCghrrkGneKpNFfjkoOBsbRRrBNztTu8hVuUokeM=; b=0qVXnHiM0160QM5jRA+YAyvzEyypoHTtDGH2jYQZEEsz8xVTPAvMHODO9knU2cdeTf FtyE6gsy2jsPvJVsAAqLfdgFfSjK80UQWGZw5QS+kH7lXJDIeEl5qqaM+7hkn5RxK1tP 6iFLLCAwI2DIjbCw4zwtnP6L2AcPl0+VT1Fa/XH68HsQRH5H1jtHcuXkB1KIGzcgr+0f bSZE5APMzY6ung1b2q/hKicGzD14yzR5UuwtnEWVqyvNcVYlBFJANsxqwexCSXXxSWDQ 9g5J1WFy/MPufWyqfG75iYWaMdMEyMu9Dorkc9ks1Ee2p/d2SAqpyS5hd7CGnI7+2M3q DFMQ== Original-Received: by 10.204.151.82 with SMTP id b18mr2183560bkw.132.1339088133925; Thu, 07 Jun 2012 09:55:33 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFBF1F.dip.t-dialin.net. [87.175.191.31]) by mx.google.com with ESMTPS id fw10sm4615789bkc.11.2012.06.07.09.55.30 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jun 2012 09:55:32 -0700 (PDT) In-Reply-To: <4FD0D3CB.2020103@wxs.nl> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HjsTysP - 511ba0ad71fa - 20120607 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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 Xref: news.gmane.org gmane.comp.tex.context:76775 Archived-At: Am 07.06.2012 um 18:16 schrieb Hans Hagen: > On 7-6-2012 18:02, Wolfgang Schuster wrote: > >> You can also try to use a Lua variant. >> >> \def\states_entry_indeed[#1][#2]% >> {\startlua >> local entries = utilities.parsers.settings_to_array("#1") >> local entry = entries[#2] >> if entry then >> context(entry) >> else >> context("\\tttf NO ENTRY!") > > shouldn't that be grouped? Yes, of course. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________