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

Karl Berry karl at freefriends.org
Sun Apr 24 23:25:10 CEST 2011


Hi Christophe,

    /texmf/generic/pgf/libraries/name_of_the_library/lua/

Perhaps this is just a development-vs-release question, but just to be
sure: no top-level generic/ directory in the release please.  That
(e.g., texmf-dist/generic) doesn't exist now and it doesn't make sense.
Current pgf is under {doc,source,tex}/generic/..., which is fine.

    So $TEXMF/scripts/pgf/ 

Yes, definitely.

    with no subdir relating to the library?

You can have a subdir if you like, it makes no difference to the code.
However, unless you have a large multitude of scripts, I'd skip it and
keep the dir structure that much simpler.

    rk>
    LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXINPUTS
    According to the setting of LUAINPUTS, only files in $TEXMF/scripts
    are found.  

No.  $TEXINPUTS is at the end of that definition, so scripts don't
*have* to be under TEXMF/scripts -- but that is definitely the
recommended place.

Best,
Karl


More information about the tex-live mailing list