From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46586 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem Passing \starttabulate into Lua Date: Thu, 1 Jan 2009 12:00:34 +0100 Message-ID: <47F0E87B-7911-4549-9E86-A4DCB1463C3B@gmail.com> 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 1230808032 5700 80.91.229.12 (1 Jan 2009 11:07:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2009 11:07:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 01 12:08:20 2009 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 1LILPX-0003or-U1 for gctc-ntg-context-518@m.gmane.org; Thu, 01 Jan 2009 12:08:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 199391FD4E; Thu, 1 Jan 2009 12:07:03 +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 30134-02-21; Thu, 1 Jan 2009 12:06:18 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CAA81FD70; Thu, 1 Jan 2009 12:05:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DE091FDE3 for ; Thu, 1 Jan 2009 12:05:17 +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 29887-02-13 for ; Thu, 1 Jan 2009 12:04:14 +0100 (CET) Original-Received: from mail-bw0-f20.google.com (mail-bw0-f20.google.com [209.85.218.20]) by ronja.ntg.nl (Postfix) with ESMTP id 0534A1FD81 for ; Thu, 1 Jan 2009 12:00:39 +0100 (CET) Original-Received: by bwz13 with SMTP id 13so14861549bwz.2 for ; Thu, 01 Jan 2009 03:00:39 -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=jsHvRjzvOR9cx8i5mwenIAizLESfhMA1nSDyeiEZ90w=; b=VWk99ZWPEZqc2qwEqN5mB4hL2T9vY9lx7UakUZ4cpaByPvvtvIv7Q9xJStL0o5qi4x YTCS2QnvwPpcw+0TrePN/yPsq45xsZUTamAPV8QAXVWF+xBpdRtXY7fOz6e2tl6C9+AM janwvR1ZmK8gbKUDLLDQfYE/yW4Zx6ABuvEes= 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=u5sIDd8gSFTQKc7O4xjCjiJTUn4uLC+6jFIz0yUupXXoZZ6vTXgCEkBRG1dVTfDdLS raDGvxce+4UGzRUSCuDWmV43mwZyLzvxYBGNBj46wByG2ZcHAcIrddYcbtNkaDNcJrIZ ew1x3K7MM8Y6yLTLRqAMtSrVe1+szSKeboZiA= Original-Received: by 10.181.209.1 with SMTP id l1mr6412825bkq.139.1230807639010; Thu, 01 Jan 2009 03:00:39 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B2956D8.dip.t-dialin.net [91.41.86.216]) by mx.google.com with ESMTPS id z10sm31812526fka.5.2009.01.01.03.00.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jan 2009 03:00:37 -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:46586 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. > > \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#1{\ctxlua{d='\luaescapestring{\normalunexpanded{#1}}'}} \starttext \testmacro{\starttabulate[|l|p|] \NC knuth \NC \input knuth \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 ___________________________________________________________________________________