On 10/4/2013 10:47 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello all,
how to call \let from within Lua?
I'd need to "\let\T=4" using Lua.
The following code doesn't work (not so surprisingly):
---- \startluacode a = 4 \stopluacode
\expandafter\let\expandafter\T=\cldcontext{a}
\starttext Test \T. \stoptext ----
What's the correct way?
why let and not context.setvalue("T","4") anyway ... \startluacode a = 4 \stopluacode \normalexpanded{\let\noexpand\T\cldcontext{a}} \starttext Test \T. \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------