From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57620 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: directlua in xmlsetup Date: Wed, 31 Mar 2010 17:55:07 +0200 Message-ID: <4BB3705B.1050702@wxs.nl> References: <040040B2-EC45-48D2-AA85-35B32439B05A@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270050933 22333 80.91.229.12 (31 Mar 2010 15:55:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 15:55:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 31 17:55:29 2010 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 1Nx0GP-0001ue-Ad for gctc-ntg-context-518@m.gmane.org; Wed, 31 Mar 2010 17:55:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABFCBC9BD4; Wed, 31 Mar 2010 17:55:28 +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 LsdxkwGY5qj2; Wed, 31 Mar 2010 17:55:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 18117C9C96; Wed, 31 Mar 2010 17:55:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8F83C9C96 for ; Wed, 31 Mar 2010 17:55:24 +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 3Jt7s2kbiIhS for ; Wed, 31 Mar 2010 17:55:22 +0200 (CEST) Original-Received: from mail.solcon.nl (unknown [217.121.8.199]) by balder.ntg.nl (Postfix) with ESMTP id C40A1C9BD4 for ; Wed, 31 Mar 2010 17:55:22 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2d2) with ESMTP id 8100-1713362 for multiple; Wed, 31 Mar 2010 17:54:06 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 In-Reply-To: <040040B2-EC45-48D2-AA85-35B32439B05A@uva.nl> X-Authenticated-User: hagen@controller-9 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:57620 Archived-At: On 31-3-2010 17:35, Hans van der Meer wrote: > Just between \starttext..\stoptext the code \directlua{tex.print("{\it > abc}")} works as expected and I get an italic abc. > > However, between \startxmlsetups..\stopxmlsetups this is different. Here > the result is: {endgraf ignorespaces it abc} > And leaving out one backslash before the it: {it abc} > > I suspect some catcode trickery here. But can this be solved easily? Or > do I need to program calling of some explicite Lua-function for this? wont work, \ctxlua does but \startluacode indeed does catcode trickery Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________