From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70067 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?b?RmluZGluZyB2YWx1ZXMg4oCL4oCLb2YgdGhlIGNv?= =?utf-8?q?ntext_macros_inside_Lua_functions_=28=3Dexpansion_inside_Lua_fu?= =?utf-8?b?bmN0aW9ucz8p?= Date: Sun, 17 Jul 2011 14:53:03 +0200 Message-ID: <579F54E4-80CD-4356-8294-3A5FBA13ABAC@googlemail.com> References: <4E22CF21.9060603@gyza.cz> <37B73A08-F808-4120-AF73-D313BD575015@googlemail.com> <4E22D89C.6060609@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310907208 8823 80.91.229.12 (17 Jul 2011 12:53:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 12:53:28 +0000 (UTC) Cc: mailing list for ConTeXt users To: hajtmar@gyza.cz Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 14:53:24 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 1QiQqZ-0006KY-Pp for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2011 14:53:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 80438CAE5F; Sun, 17 Jul 2011 14:53:22 +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 R-46-twgxbtQ; Sun, 17 Jul 2011 14:53:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A4B6CAE55; Sun, 17 Jul 2011 14:53:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9A88CAE55 for ; Sun, 17 Jul 2011 14: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 18Q2L-UEQ+fB for ; Sun, 17 Jul 2011 14:53:06 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id CF960CAE51 for ; Sun, 17 Jul 2011 14:53:06 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6HCr6gJ032072 for ; Sun, 17 Jul 2011 14:53:06 +0200 Original-Received: by fxe23 with SMTP id 23so4661252fxe.15 for ; Sun, 17 Jul 2011 05:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=TbYv7eWupLKznqwsQaGDj4oqKiUI1Om6+Q1Vpj4J2GU=; b=iYRiFslEmRMCmaolT+TZbynYIHEf/zgC5gnQhyIWYQEj8qRA68w4qc0roC/e7+z+H9 HGZmGyYKxjCNNwKrGtEMBl7OcjKZKVHht6EQ1pvMx0WE65/mTS0SyeaLKXo0EdoKfXGN 9KRkbh/OqG5179D31kAlO+8eUaqHUXCikzUgI= Original-Received: by 10.223.145.144 with SMTP id d16mr4513784fav.100.1310907185904; Sun, 17 Jul 2011 05:53:05 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482DC2B.dip.t-dialin.net [84.130.220.43]) by mx.google.com with ESMTPS id l22sm2213307fam.33.2011.07.17.05.53.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jul 2011 05:53:05 -0700 (PDT) In-Reply-To: <4E22D89C.6060609@gyza.cz> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; 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: 06F90R6h9 - ff7ad9893383 - 20110717 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:70067 Archived-At: Am 17.07.2011 um 14:42 schrieb Jaroslav Hajtmar: > Thanx Wolfgang. > But I guess I was wrong to express.. > = > I need to pass parameter '\\macroI' to the function and turn it up a in= side luafunction expand to its value. Not possible. > Ie when \def\macroI{6} > = > Then I need when I make in your example \ctxlua{test("\\macroI")} get the= result : > "The argument =936=94 is a positive number" and not result "The argument = =936=94 is a string." That=92s odd because for me \ctxlua{test("\macroI")} results in The argument =936=94 is a positive number. and \ctxlua{test("\\macroI")} in The argument =936=94 is a string. 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 ___________________________________________________________________________= ________