[luatex] Packages and fonts not found if I load luatextra

T T t34www at googlemail.com
Tue Jun 22 14:36:22 CEST 2010


On 22 June 2010 12:09, Khaled Hosny <khaledhosny at eglug.org> wrote:
> On Tue, Jun 22, 2010 at 11:39:40AM +0200, Manuel Pégourié-Gonnard wrote:
>> Le 22/06/2010 11:07, Ulrike Fischer a écrit :
>> > 1. Is is normal that luatextra changes the progname during
>> > compilation?
>> >
>> IMO, no. This is due to kpse.set_program_name("luatex") in lualibs.
>> As a quick fix, I suggest replacing this line with
>>
>> kpse.set_program_name(arg[-1] or arg[0])
>>
>> Even better would be to test if kpse is already initialised, but I don't know
>> how to do that. Alternatively, lualibs could use a private instance:
>>
>> local mykpse = kpse.new(...)
>> -- later in load_lualibs_module()
>> local path = mykpse:find_file(filename)
>>
>> Or it could just document that kpse should be initialised before lualibs is
>> loaded (which is only a problem for texlua scripts, but not in tex mode).
>>
>> Khaled, wdyt?
>
> I think I'll go with the last one.

I had a somewhat related dilemma regarding kpse initialization and its
cost.  Perhaps this info will be of some use:

http://www.mail-archive.com/dev-luatex@ntg.nl/msg01396.html

Cheers,

Tomek



More information about the luatex mailing list