On 17/02/2010 12:58, Manuel Pégourié-Gonnard wrote:
If one wants to use an external file for Lua code (which is probably preferable
when the amount of code is bigger than a few lines), a solution might be

\directlua{
   lua.bytecode[1]=loadfile("latex3-format.lua")
   lua.bytecode[1]()
}
\everyjob{\directlua{lua.bytecode[1]()}}
% TeX code goes here

using the fact that loadfile() returns a function whose body is the content of
the file.

Hello Manuel,

At present the aim is simply to get the same behaviour across the three engines. However, in the longer term this is obviously one to bear in mind.
--
Joseph Wright

Reply via email to