![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 tex.modes["*first"] then userdata.LPr = "Something" -- Is there a variable which is shared between Ctx runs? else assert(userdata.LPr == "Something") end \stopluacode ----
Of course, I can store the table via serialization functions to an extra file, but I thought there is already a variable/mechanism for this (e.g. using .tua/.tuc file) ... is it?
search for datasets in the test suite ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------