On 07/01/2013 11:24, Taco Hoekwater wrote: > On 01/05/2013 08:09 PM, Manuel Pégourié-Gonnard wrote: >> With the change to Lua 5.2, loadfile() should accept new arguments, most >> notably >> the third one to provide an environment for the loaded chunk. This argument >> is >> especially useful since setfenv() is removed in Lua 5.2. >> >> However, I'm afraid this argument is ignored by LuaTeX: > > Thanks, will be fixed in next release. > Great, thanks.
In the meantime, I worked around this by using load() which works as expected (but one needs to locate and read the file manually). Manuel.
