[tex-k] Re: first steps with libkpathsea

Patrick Gundlach texkml at contextgarden.net
Mon Jun 13 22:34:25 CEST 2005


>> So currently I call 'kpse_set_program_name("kpsewhich",myprog);' to fake
>> the name of the program. Which is of course sort of strange, but as
>
> You could as well call kpse_set_program_name() with the "real" progname
> and set the envvars SELFAUTOLOC, SELFAUTODIR and SELFAUTOPARENT just
> right after this call. You could determine the right value for these
> variables by locating kpsewhich along $PATH and use the directory name
> for SELFAUTOLOC etc.

Is there any other reliable way to set these variables? If PATH is not
including the TeX binaries, my solution and this method will fail. The
kpathsea library is still able to find the TeX root, but - since the
SELFAUTO* variables are not set - it does not go down that tree.

Patrick



More information about the tex-k mailing list