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
___________________________________________________________________________________
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
___________________________________________________________________________________