On 13-3-2010 17:24, Wolfgang Schuster wrote:
Am 13.03.10 15:54, schrieb Philipp Gesang:
Dear Lua Gurus,
what's the preferred way of including files in Lua?
When trying my module on a different machine I noticed that it fails because Lua's dofile() does not extend to files in the texmf tree. Thus I attempted to include the file with context.ctxlualoadfile() but it doesn't work either. environment.loadluafile(...)?
or require "whatever.lua" ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------