![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
13 Nov
2016
13 Nov
'16
6:56 a.m.
Here is something I do not understand. Possibly I am doing something wrong. The following code is fine, within <<>> the current contextversion is printed. \def\mymacro{\directlua{tex.print("\\contextversion")}} \starttext calling mymacro <<\mymacro>>\par \stoptext However calling \mymacro from inside \startxmlsetup .. \stopxmlsetup does not work and results in <<\contextversion>>. I guess that the catcode regime in that environment is to blame. But how do I change that in order to get things working? I looked into the LuaTeX-manual where catcodes in relation to tex.print are treated, but in vain and could not find how to. What do I have to change? Hans van der Meer