[tex-live] Where do I put lua scripts for a package?

Reinhard Kotucha reinhard.kotucha at web.de
Tue Apr 26 02:41:59 CEST 2011


On 2011-04-25 at 23:36:48 +0200, Ulrike Fischer wrote:

 > Am Mon, 25 Apr 2011 21:19:14 +0200 schrieb Reinhard Kotucha:
 > 
 > >  > I'm not sure. "scripts" is certainly the right place for lua file
 > >  > connected with an executable, e.g. mkluatexfontdb.lua /
 > >  > mkluatexfontdb.exe. 
 > >  > 
 > >  > But the majority of package puts their lua-files in "tex". Look e.g.
 > >  > a luaotfload or lualibs. And at my opinion this make sense. These
 > >  > lua-files are similar to the various .tex files e.g. pgf inputs.
 > > 
 > > In this case kpathsea falls back to $TEXINPUTS and has to scan the
 > > whole $TEXMF/tex trees, which is rather inefficient and not desirable.
 > 
 > I don't think that this must be the case. Inefficient searches can
 > be avoided: Packages can always setup the kpathsea search with the
 > kpse-functions. As far as I know e.g. luaotfload uses
 > luatexbase-loader.sty which sets up the search pathes "tex" for
 > lua-files (kpse.find_file(search_name, 'tex')). And context is doing
 > its own thing anyway and ignores kpathsea.  

But then Lua files are searched in the huge trees which contain all
the tex input files too.  It's true that it's possible with LuaTeX to
circumvent the settings in texmf.cnf.  But this is not advisable.

The settings in texmf.cnf make sense and should be used.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
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