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

Ulrike Fischer news3 at nililand.de
Mon Apr 25 12:29:19 CEST 2011


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.

Context is doing it in a similar way: maintenance lua-files used by
mtxrun are in "scripts", but the files used by the format are in
"tex\context". 

-- 
Ulrike Fischer 



More information about the tex-live mailing list