Hello Gurus.
Sorry for OT, but I solve one problem in parallel in ConTeXt and pure
LuaTeX too and I got into trouble.
I have a problem in LuaTEX with putting macro name into global
variables and their re-listing. In ConTeXt, the problem is not with it.
Here is my minimal LuaTeX example:
\directlua{function put2globvar(parameter) globvar=parameter end}
\directlua{function getglobvar() tex.print(globvar) end}
\def\puttoglobvar#1{\directlua{put2globvar('#1')}}
\def\globvar{\directlua{getglobvar()}}
% OK
Text --
\puttoglobvar{Text}
\globvar
% OK
$\alpha$ --
\puttoglobvar{$alpha$}
\globvar
% not working
$\alpha$ --
\puttoglobvar{$\alpha$}
\globvar
% Error ...
%\puttoglobvar{$\\alpha$}
%\globvar
\bye
Can you please advise?
Thanx Jaroslav Hajtmar
___________________________________________________________________________________
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
___________________________________________________________________________________