[tex-live] Where do I put lua scripts for a package?
Reinhard Kotucha
reinhard.kotucha at web.de
Mon Apr 25 21:19:14 CEST 2011
On 2011-04-25 at 12:29:19 +0200, Ulrike Fischer wrote:
> Am Sun, 24 Apr 2011 21:36:42 +0200 schrieb Reinhard Kotucha:
>
> > On 2011-04-24 at 18:27:02 +0200, Christophe Jorssen wrote:
> >
> > > Hello all,
> > >
> > > In the cvs version of pgf, a new library uses some lua scripts
> > > designed to work with luatex. I'd like to know in which directory lua
> > > scripts should be put (for a later update of the pgf-cvs bundle to
> > > tlcontrib).
> > >
> > > For now they are located in
> > >
> > > /texmf/generic/pgf/libraries/name_of_the_library/lua/
> > >
> > > AFAIU the TDS documentation, this should rather be
> > >
> > > /texmf/scripts/pgf/libraries/name_of_the_library/
> > >
> > > Can somebody confirm?
> >
> > This is an excerpt of texmf.cnf in TL-2010:
> > -------------------------------------------------------
> > % Lua needs to look in TEXINPUTS for lua scripts distributed with packages.
> > LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXINPUTS
> > -------------------------------------------------------
> >
> > You can also look where the ConTeXt Lua scripts are. I think that
> >
> > $TEXMF/scripts/pgf/
> >
> > is a good choice.
>
>
> 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.
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