Re: [NTG-context] Storing Lua values between Ctx "*first* and next runs

2018-07-17 Thread Hans Hagen
On 7/14/2018 1:24 PM, Procházka Lukáš Ing. wrote: Hello, is there a Lua variable/namespace which is stored automatically between Ctx "*first" and following runs? I thought 'userdata' is intended for this, but it seems it's not; I'd like to achieve something like: \startluacode   if

[NTG-context] Storing Lua values between Ctx "*first* and next runs

2018-07-14 Thread Procházka Lukáš Ing .
Hello, is there a Lua variable/namespace which is stored automatically between Ctx "*first" and following runs? I thought 'userdata' is intended for this, but it seems it's not; I'd like to achieve something like: \startluacode if tex.modes["*first"] then userdata.LPr =