12 May
2007
12 May
'07
5:57 p.m.
Throw out the \expandafter. It basically negates the effect of \unexpanded by having expansion occur afterwards.
Namely:
\def\lua#1{\directlua0{\unexpanded{#1}}}
This makes sense and it works (I'm pretty sure I tested it before, but it's clear I made some mistake). Javier