From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78115 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 19:53:01 +0200 Message-ID: <505AB3E3-9DBD-4085-A3D4-B03AF447C485@gmail.com> References: <20120904171243.3f70b4a6@homerow> <20120904194029.20b9abdf@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="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346781202 27686 80.91.229.3 (4 Sep 2012 17:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2012 17:53:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 04 19:53:23 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 1T8xJR-0005Mx-6M for gctc-ntg-context-518@m.gmane.org; Tue, 04 Sep 2012 19:53:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1AC2B101FD; Tue, 4 Sep 2012 19:53:18 +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 wL+tGRW3lEFF; Tue, 4 Sep 2012 19:53:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 47749101F2; Tue, 4 Sep 2012 19:53:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4909101F2 for ; Tue, 4 Sep 2012 19:53:14 +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 q-cK8V63t1AH for ; Tue, 4 Sep 2012 19:53:13 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id B4807101EB for ; Tue, 4 Sep 2012 19:53:13 +0200 (CEST) Original-Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q84Hptea012717 for ; Tue, 4 Sep 2012 19:52:00 +0200 Original-Received: by wgbds1 with SMTP id ds1so3370244wgb.2 for ; Tue, 04 Sep 2012 10:53:08 -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=1T9qOUf0lY1uUccdTC3ySClEXiwcZ4PQTqteHIa9BJk=; b=Zc0aG64KVl9J4KrdjgLlF5WAlkQUmGIoN8hs8PHxHEQDpK/K9IhKZZGbS1DucoUihf iTAEyeCDV+H18Xb7oqPnn06iRNMPA8l/4p6D62R93uOb7iIEr++hlSWZzn5t9w9kkJAv Q4OXeceVXqXD8zdjMapJAdrQHLZY7rwDtEBx4SEPCrFR3HaNMkDPaBApm0RYbdvDtVx7 h+85KO+8ARc86P7//jPPxw1A4FaOqxafdvnC0OLiVdSpHqHbJkAl6pqZ7Zg/FbNu6/8C 5dP7cy5WplPCOkFjVzEGWFeHih2ZuLoawwKJdHcL0IApYIyVHt5tbJU4xnyhQnzihQNn kvHg== Original-Received: by 10.216.116.70 with SMTP id f48mr6134182weh.162.1346781188384; Tue, 04 Sep 2012 10:53:08 -0700 (PDT) Original-Received: from [10.74.180.113] ([89.204.130.113]) by mx.google.com with ESMTPS id bc2sm38144540wib.0.2012.09.04.10.53.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 10:53:07 -0700 (PDT) In-Reply-To: <20120904194029.20b9abdf@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: 0WHT5PT4z - 7f488d50cb64 - 20120904 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:78115 Archived-At: Am 04.09.2012 um 19:40 schrieb Marco Patzer : > On 2012-09-04 Martin Schr=F6der wrote: > = > Hi Martin, > = >> http://tracker.luatex.org/view.php?id=3D682 > = > It seems that I just hit a very hard to solve issue which needs > not yet available support from the luatex side. > = > Patricks solution seems not very practical and error prone, so I > settled with this ugly but still readable workaround: > = > \def\cmd > {\newdimen\mydimen > \mydimen=3D50pt} > = > \starttexdefinition action > \cmd > \startluacode > if tex.dimen.mydimen < tex.dimen.textwidth then % > context("is smaller") > else % > context("is not smaller") > end % > \stopluacode > \stoptexdefinition > = > \action Is there a good reason why you put \newdimen because dimen/count etc. regis= ters should always be defined once. 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 ___________________________________________________________________________= ________