5 Dec
2011
5 Dec
'11
9:22 p.m.
Hello ConTeXist. Sorry for the beginner question, more for Lua(TeX) experts. Can somehow be achieved that the parameter of TeX macro get to luafunction unchanged? In the debug.txt file is the result obtained. Thanx Jaroslav \startluacode debug=io.open("debug.txt","w+") function testfun(param) debug:write(param) -- tex.print(param) end \stopluacode \def\testmac#1{\directlua{testfun('#1')}} \starttext $\frac{x_\alpha+y_\beta}{z_\gamma}$ \testmac{\frac{x_\alpha+y_\beta}{z_\gamma}} \stoptext