[luatex] Getting the extra primitives?

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 17 14:07:30 CET 2010


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


More information about the luatex mailing list