[tex-live] kpse don't find files under $TEXMF/scripts

Reinhard Kotucha reinhard.kotucha at web.de
Sun Mar 28 09:34:30 CEST 2010

On 28 March 2010 Khaled Hosny wrote:

 > The lua_altopt module installed under texmf-dist/scripts/ is not seen by
 > kpse, and since luatex's "require()" use kpse to find files, I can't
 > require the texlive installed module.
 > If this is the expected behaviour, then we either need to special case
 > lua modules (e.g. have a searchable scripts/lua/ subdir) or move lua
 > modules somewhere else.

Please try this:


AFAIK require() expects a name without an extension but kpathsea needs
the full name, of course.  Thus, you could also try 


but using dofile() looks more straightforward to me.

I assume that you got lua_altopt.lua by running tlmgr update,
otherwise you shouldn't forget to run texhash.


Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.

More information about the tex-live mailing list