From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78118 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: TeX expansion within lua Date: Tue, 4 Sep 2012 20:25:27 +0200 Message-ID: References: <20120904171243.3f70b4a6@homerow> <20120904194029.20b9abdf@homerow> <505AB3E3-9DBD-4085-A3D4-B03AF447C485@gmail.com> <20120904201154.74c1ed67@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1346783138 13094 80.91.229.3 (4 Sep 2012 18:25:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2012 18:25:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 04 20:25:40 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 1T8xoh-0004SF-CJ for gctc-ntg-context-518@m.gmane.org; Tue, 04 Sep 2012 20:25:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AAA7C101FD; Tue, 4 Sep 2012 20:25: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 (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Sz7aZT2hUhcH; Tue, 4 Sep 2012 20:25:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DB0E6101F2; Tue, 4 Sep 2012 20:25:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2647101F2 for ; Tue, 4 Sep 2012 20:25:33 +0200 (CEST) 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 ItJWpf-dN55q for ; Tue, 4 Sep 2012 20:25:33 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 175BB101EB for ; Tue, 4 Sep 2012 20:25:33 +0200 (CEST) Original-Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q84IPWsq031506 for ; Tue, 4 Sep 2012 20:25:32 +0200 Original-Received: by wgbds1 with SMTP id ds1so3399199wgb.2 for ; Tue, 04 Sep 2012 11:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=lMTlauQj4fHdQh6KzbpNarhgMQemJM9rVt5Mm1n1SsA=; b=06H4cJcQrCpff0Txsl3uYpG5HUzVaelzJcpVqmCbcGnVT9d6aBM+fBNNN0bShg3d3E V7UEhQquhpbInoHgKtJAXrZUuCq1wN8kSuFvVtu6VSoQlDTrMbHrviaxfzx8ScLJhtRk cNPWGWlnHQ16jbrtVnJEoeUpJ2z+rt65XU/X7Lht0vJLrtI5tUjs9n7Onogh6JhoCLeY 9gy8kXwM9pOllE6VxS4b8Iz0FnT1z6CMhm0jem0nfLScML+VWzlj9RDRBykoEfh7FV/6 CfG8h57GVFjGuNx8zLJJzsuN8MsFVsOK7pqeZ1ghbKK+v2u/uE8VrAzefz9mrF7ChhyV X3yw== Original-Received: by 10.180.81.193 with SMTP id c1mr32389666wiy.12.1346783132139; Tue, 04 Sep 2012 11:25:32 -0700 (PDT) Original-Received: from [10.74.180.113] ([89.204.130.113]) by mx.google.com with ESMTPS id fr4sm38404281wib.8.2012.09.04.11.25.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 11:25:31 -0700 (PDT) In-Reply-To: <20120904201154.74c1ed67@homerow> X-Mailer: Apple Mail (2.1486) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.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: 0THT6pwhe - 372575ac2e67 - 20120904 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78118 Archived-At: Am 04.09.2012 um 20:11 schrieb Marco Patzer : > On 2012-09-04 Wolfgang Schuster wrote: > >> Is there a good reason why you put \newdimen because dimen/count >> etc. registers should always be defined once. > > The definitions are not in a macro, they are defined at the top of > the file. I messed around while creating a minimal example. However, > the problem remains the same since the assignment does not happen > within Lua. > > But, thanks for the hint. I am always happy for improvements and > feedback about my code. What prevents you from setting the dimen value in Lua? \starttext \scratchdimen = 20pt \the\scratchdimen \ctxlua{tex.dimen.scratchdimen = "10pt"} \the\scratchdimen \stoptext 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 ___________________________________________________________________________________