From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65281 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \e!start in lua Date: Sun, 16 Jan 2011 09:52:31 +0100 Message-ID: <8D05D89F-60BF-47E6-A9FE-EA88398C79DB@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295168080 23750 80.91.229.12 (16 Jan 2011 08:54:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Jan 2011 08:54:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 16 09:54:36 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PeONg-0003i9-Fy for gctc-ntg-context-518@m.gmane.org; Sun, 16 Jan 2011 09:54:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B349CA968; Sun, 16 Jan 2011 09:54:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mQZ1NC8cA4w9; Sun, 16 Jan 2011 09:54:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69133CA956; Sun, 16 Jan 2011 09:54:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C05ACA956 for ; Sun, 16 Jan 2011 09:54:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MVTXsP97fC3V for ; Sun, 16 Jan 2011 09:54:24 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 6E0F2CA954 for ; Sun, 16 Jan 2011 09:54:24 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0G8sMm1019386 for ; Sun, 16 Jan 2011 09:54:24 +0100 Original-Received: by mail-fx0-f41.google.com with SMTP id 12so4722495fxm.14 for ; Sun, 16 Jan 2011 00:54:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=ffdYjmkWeyjVr8h9uhcNnBZEZiqRbpxwexCQjjBT28A=; b=G3DQMeHbuhLYoi+KoxA38KddgxcXbL8D8RT/XjYiTe6aL2e3/5w2veyL7cDRKV7yLY Tpyc3wCfajEAMauhYFO6KFLSyYaCP8u+QtQD2XavmjNNuSUWTctYyxL63YMQ98WKOFVt 31ZKnxt+NdRCIz8zGTFBrmDQwWU/FJ0IsG9VM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=JWztxsOjT0tgKVipZmWPLhRqdVE/UKCNAERIzVDuClYCfMBfGNVfgAzL9AJUgaa1dX P8ETP+9dzhtWWqQ78wtAWzyU8T1zcl36wQ6bjCHb8F+Xx9gv13I8LQcjXtFoo39zUS8T aDEstHe59tIdRsoBNA/U5xWyjfoIUeW+Dkc4U= Original-Received: by 10.223.103.8 with SMTP id i8mr3142598fao.47.1295168063927; Sun, 16 Jan 2011 00:54:23 -0800 (PST) Original-Received: from [192.168.2.23] (p5B293491.dip.t-dialin.net [91.41.52.145]) by mx.google.com with ESMTPS id n1sm1145272fam.40.2011.01.16.00.54.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Jan 2011 00:54:22 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.85.161.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: 0rDU8SoTd - 2848fe004e3a - 20110116 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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:65281 Archived-At: Am 15.01.2011 um 23:57 schrieb Aditya Mahajan: > What is the best way to define the equivalent of > = > \setvalue{\e!start\NAME}{...} > = > in lua. > = > e_start =3D ?? > context.setvalue(e_start .. name, "...") \startluacode context.setvalue("foo","\\framedtext") context.setvalue(table.concat({"start","foo"}),"\\startframedtext") context.setvalue(table.concat({"stop" ,"foo"}),"\\stopframedtext" ) \stopluacode \starttext \foo{foo} \startfoo bar\stopfoo \stoptext You can also write =93context.setvalue("start".."foo","=85")=94 but table.c= oncat looks better but the question is why don=92t you use just tex to create the start/stop commands. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________