![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Hans van der Meer