From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46556 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem Passing \starttabulate into Lua Date: Sun, 28 Dec 2008 23:33:59 +0100 Message-ID: References: <49560F83.3080706@cyberdude.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230503776 23995 80.91.229.12 (28 Dec 2008 22:36:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 22:36:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 28 23:37:22 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LH4G1-0005JG-Ik for gctc-ntg-context-518@m.gmane.org; Sun, 28 Dec 2008 23:37:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 416451FC57; Sun, 28 Dec 2008 23:35:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00502-03-7; Sun, 28 Dec 2008 23:34:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 704131FBD0; Sun, 28 Dec 2008 23:34:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7CC8F1FB8F for ; Sun, 28 Dec 2008 23:34:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00502-03-6 for ; Sun, 28 Dec 2008 23:34:01 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by ronja.ntg.nl (Postfix) with ESMTP id C132B1FBD0 for ; Sun, 28 Dec 2008 23:34:01 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id l26so1603609fgb.8 for ; Sun, 28 Dec 2008 14:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:to:in-reply-to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer:from; bh=9PwKAfOePQqUc0CP4YWceqCzrzw70BstY0ySmXoME60=; b=Oli3L6WsGZaK8LIzrtl9Dhc8d5EGpakJOSKUvbLSqrTJJqrmSafjs8qO0swLLDO8ju B1P40aPw77hlyE/P3rcnKfFO7V75oirdewRroI1dNUJ+aeOIh7GaYWtjtbwSXCgIvumZ HExGbjEDlJKGZCir/7CmHRzST1EF6u3MFMSNY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer:from; b=xMmNxEx8OUtfP6S3nlMA+ddk9U+4mpSjmgIe4vO9xKIZJ/ONZEmJ9Vp/x8dENSPiS6 N/sxkvyn5BvH2C+Xvm9bJsNmM1C0wH5FHgrmzGMOnuINtFwgFndTuPbNBLz0QDUG5mLm MzCTe6GuZOEvyvtAGB6LLwsVZmGeqxkWdKBI8= Original-Received: by 10.86.51.10 with SMTP id y10mr7681248fgy.51.1230503641640; Sun, 28 Dec 2008 14:34:01 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B294514.dip.t-dialin.net [91.41.69.20]) by mx.google.com with ESMTPS id l12sm18615017fgb.8.2008.12.28.14.34.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Dec 2008 14:34:01 -0800 (PST) In-Reply-To: <49560F83.3080706@cyberdude.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46556 Archived-At: Am 27.12.2008 um 12:20 schrieb Tad Ashlock: > I'm trying to create a ConTeXt macro (mkiv) that will manipulate the > macro argument's text with Lua and then feed it back into ConTeXt > with tex.print(). My approach worked correctly until I called the > macro with \starttabulate ... \stoptabulate in the macro's > argument. So I started reducing the problem down to a minimum > example which surprisingly turned out to have nothing to do with the > manipulations I was performing. > > Here is the working example (without \starttabulate): > > \long\def\testmacro#1{\directlua0{d='\luaescapestring{#1}'}} > \starttext > Hello, world! > \testmacro{% > testing} > \stoptext > > > Here is the broken example: > > \long\def\testmacro#1{\directlua0{d='\luaescapestring{#1}'}} > \starttext > Hello, world! > \testmacro{% > testing > \starttabulate > \NC 0 \NC testing tabulate. \NC \NR > \stoptabulate} > \stoptext \def\testmacro {\bgroup \catcode`\\=12 \dotestmacro} \def\dotestmacro#1 {\ctxlua{d='\luaescapestring{#1}'}% \egroup} \starttext \testmacro{\starttabulate \NC text \NC text \NC\NR \stoptabulate} %\ctxlua{tex.sprint(d)} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________