[luatex] require with kpse loaders
T T
t34www at googlemail.com
Thu Jan 6 18:16:02 CET 2011
Hi,
In the past I used this code:
kpse.set_program_name("texlua")
master = kpse.var_value('SELFAUTOPARENT')
package.path = master.."/c?.tlu"
require("texlive.tlpdb")
to load texmf/scripts/texlive/lua/texlive/tlpdb.tlu module but this is
not working anymore with kpse loaders.
The following allowed me to bypass kpse loader and use the Lua's built-in one:
master = kpse.new("texlua"):var_value('SELFAUTOPARENT')
package.path = master.."/texmf/scripts/texlive/lua/?.tlu"
require("texlive.tlpdb")
but is there a way to make kpse loader find this module?
Cheers,
Tomek
More information about the luatex
mailing list