[luatex] require with kpse loaders

T T t34www at googlemail.com
Thu Jan 6 23:04:45 CET 2011


On 6 January 2011 17:16, T T <t34www at googlemail.com> wrote:
> 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?

To answer my own question: kpse doesn't find the file because .tlu
extension is not treated as one of the lua extensions (as in
'-format=lua').

Karl, could we add .tlu to lua extensions in kpathsea?

Cheers,

Tomek


More information about the luatex mailing list