From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78138 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: TeX expansion within lua Date: Wed, 5 Sep 2012 11:42:32 +0200 Message-ID: <20120905114232.74ef0ac3@homerow> References: <20120904171243.3f70b4a6@homerow> <20120904194029.20b9abdf@homerow> <504718CA.2090209@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1346838204 14710 80.91.229.3 (5 Sep 2012 09:43:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2012 09:43:24 +0000 (UTC) To: context Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 05 11:43:25 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 1T9C8q-0007uN-SI for gctc-ntg-context-518@m.gmane.org; Wed, 05 Sep 2012 11:43:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D0D2101F8; Wed, 5 Sep 2012 11:43:21 +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 UTysLSdIHklh; Wed, 5 Sep 2012 11:43:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7882D101F9; Wed, 5 Sep 2012 11:43:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A005A101F9 for ; Wed, 5 Sep 2012 11:43:17 +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 SVoKq8U21Jms for ; Wed, 5 Sep 2012 11:43:16 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 7DDBB101F8 for ; Wed, 5 Sep 2012 11:43:16 +0200 (CEST) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q859h8p6032011 for ; Wed, 5 Sep 2012 11:43:10 +0200 Original-Received: from a.earth.lavabit.com (a.earth.lavabit.com [192.168.111.10]) by karen.lavabit.com (Postfix) with ESMTP id 698C011BDC1 for ; Wed, 5 Sep 2012 04:43:07 -0500 (CDT) Original-Received: from homerow (miun114-158.dynamic.miun.se [193.10.114.158]) by lavabit.com with ESMTP id SO39TDC5D1BD for ; Wed, 05 Sep 2012 04:43:07 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=dx/fy/TsNuZCRjZACi7XNwzBXsfV+Ajr5nEi/otXuMgScZ8Ldx72T8YaNS7dLjcGd/i/4QOyy3uZFPh2TIKuYFeePqW1k2DQerulscOTUzvLqAu/sP89p5f+L6k8FV1E6kqiJS9NlewpB0eEcEoxtC5PTLlh+deZtcYe0YrE500=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <504718CA.2090209@wxs.nl> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75206; latitude=32.8339; longitude=-96.7715; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8339,-96.7715&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHTlH8FK - 8ce513406461 - 20120905 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:78138 Archived-At: On 2012-09-05 Hans Hagen wrote: Hi Hans, > you probably over code things Yes, that's not unlikely, I tend to do that (unintentional). > instead of storing you can pass the valus directly > > \def\largerthantextwidth#1% > {\cldcontext > {if \number\dimexpr#1 "is smaller" > else > "is equal or larger" > fi}} This code does not work for me, but I get the idea of injecting macro parameters into the Lua code. Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________