From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57619 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: directlua in xmlsetup Date: Wed, 31 Mar 2010 17:35:05 +0200 Message-ID: <040040B2-EC45-48D2-AA85-35B32439B05A@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1849381640==" X-Trace: dough.gmane.org 1270049719 17582 80.91.229.12 (31 Mar 2010 15:35:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 15:35:19 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 31 17:35:15 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 1Nwzwn-0007xw-S0 for gctc-ntg-context-518@m.gmane.org; Wed, 31 Mar 2010 17:35:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6625BC9CA9; Wed, 31 Mar 2010 17:35:12 +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 yHzuM7BCtoGZ; Wed, 31 Mar 2010 17:35:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E1FEC9CFF; Wed, 31 Mar 2010 17:35:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 635EAC9CFF for ; Wed, 31 Mar 2010 17:35:08 +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 H1Oqcm7-tTfp for ; Wed, 31 Mar 2010 17:35:06 +0200 (CEST) Original-Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by balder.ntg.nl (Postfix) with ESMTP id 411ADC9CC8 for ; Wed, 31 Mar 2010 17:35:06 +0200 (CEST) Original-Received: from [192.168.178.23] (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id o2VFZ505042295 for ; Wed, 31 Mar 2010 17:35:05 +0200 (CEST) (envelope-from H.vanderMeer@uva.nl) X-Mailer: Apple Mail (2.936) X-Virus-Scanned: by XS4ALL Virus Scanner 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:57619 Archived-At: --===============1849381640== Content-Type: multipart/alternative; boundary=Apple-Mail-7--315270481 --Apple-Mail-7--315270481 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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? Hans van der Meer --Apple-Mail-7--315270481 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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?

Hans van der = Meer



=

= --Apple-Mail-7--315270481-- --===============1849381640== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1849381640==--