Re: [NTG-context] Loading lua file.

2012-12-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm using this if loading failure is not fatal: DoFile = function(fn) return pcall(function() return dofile(fn) end) end DoFile(MyFile.lua) -- instead of 'dofile(MyFile.lua)' You can play with handling error code (http://www.lua.org/manual/5.1/manual.html#pdf-pcall):

Re: [NTG-context] Loading lua file.

2012-12-13 Thread Andre Caldas
Hello, Philipp! If I load a lua file from a module using \registerctxluafile{file}{1.001} or \ctxloadluafile{file} How can I be sure the file was in fact loaded? The related tracker output is quite comprehensive: \enabletrackers[resolvers.locating] \ctxloadluafile{sometest}

Re: [NTG-context] Loading lua file.

2012-12-12 Thread Philipp Gesang
Hey André, ···date: 2012-12-12, Wednesday···from: Andre Caldas··· If I load a lua file from a module using \registerctxluafile{file}{1.001} or \ctxloadluafile{file} How can I be sure the file was in fact loaded? The related tracker output is quite comprehensive: