Re: [NTG-context] OT: Problem with writing macros into variables in LuaTeX
Thanx Wolfgang. Great - now it works. Hans' advice with \show command I'm not able to understand and implement it. One more thanx Jaroslav Hajtmar Dne 18.3.2012 12:33, Jaroslav Hajtmar napsal(a):
Thanx Wolfgang. Great - now it works.
Hans' advice with \show command I'm not able to understand and implement it.
One more thanx
Jaroslav Hajtmar
Dne 18.3.2012 11:53, Wolfgang Schuster napsal(a):
Am 18.03.2012 um 11:25 schrieb Jaroslav Hajtmar:
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')}} Untested:
\def\puttglobvar#1{\directlua{put2globvar([==[\detokenize{#1}]==])}
You can also try to replace \detokenize with \unexpanded (in ConTeXt \normalunexpanded).
Wolfgang
On Sun, Mar 18, 2012 at 1:40 PM, Jaroslav Hajtmar
Thanx Wolfgang. Great - now it works.
Hans' advice with \show command I'm not able to understand and implement it. context "\\starttext\\show\\\alpha\\stoptext" "shows" \alpha=\Umathchar"7"00"0003B1 The same command in luatex maybe shows a different thing . -- luigi
Thanks Luigi for the explanation - I understand now... Jaroslav Hajtmar Dne 18.3.2012 14:14, luigi scarso napsal(a):
On Sun, Mar 18, 2012 at 1:40 PM, Jaroslav Hajtmar
wrote: Thanx Wolfgang. Great - now it works.
Hans' advice with \show command I'm not able to understand and implement it.
context "\\starttext\\show\\\alpha\\stoptext" "shows" \alpha=\Umathchar"7"00"0003B1 The same command in luatex maybe shows a different thing .
participants (2)
-
Jaroslav Hajtmar
-
luigi scarso