12 May
2007
12 May
'07
3:13 p.m.
"Javier Bezos"
\def\lua#1{\directlua0\expandafter{\detokenize{#1}}}
\def\sub#1{% \lua{ tex.print("{\\bf #1}"); }}
\sub{Hello} Bye
\bye =========
If I use \unexpanded it fails:
This is luaTeX, Version 3.141592-snapshot-2007042614 (Web2C 7.5.6) (lua-tex.tex ! Argument of \\ has an extra }. <inserted text> \par <to be read again> }
Throw out the \expandafter. It basically negates the effect of \unexpanded by having expansion occur afterwards. Namely: \def\lua#1{\directlua0{\unexpanded{#1}}} -- David Kastrup, Kriemhildstr. 15, 44793 Bochum