[luatex] questions about the "reader" in open_read_file callback

Taco Hoekwater taco at elvenkind.com
Wed Nov 17 20:39:49 CET 2010


On 11/17/2010 06:34 PM, Manuel Pégourié-Gonnard wrote:
>>
> Nope. But, afaiu, this variable is only a path, not a set of path for searching.
>[...]
>
> But you can perfectly do
>
> kpse.set_program_name(arg[0])
> require('luatexbase.mcb')
>
> in your startup script and then use luatexbase to register your function in the
> callback. (I think you need to explicitly initialise kpse in the startup script
> if you want it to be used by require(),

Yes, all that is correct. And it sounds like a good solution.

Best wishes,
Taco


More information about the luatex mailing list