[tex-live] lua path

Reinhard Kotucha reinhard.kotucha at web.de
Sun Dec 8 16:58:17 CET 2013


On 2013-12-08 at 13:58:09 +0000, Arthur Reutenauer wrote:

 > > I'm helping a contributor prepare a texlive-friendly package. He's
 > > translated a perl script into lua as I suggested but he wants to use
 > > a standalone class definition which has to go into a directory on the
 > > lua path. I doubt texlive will support that. Is that the case?
 > 
 >   What do you mean by "standalone class definition"?  If it's an
 > external file with Lua code, TeX Live will of course support that, as
 > long as it's in a directory known to kpathsea.

What Bob probably means is to have files

  foo.lua
  foo/bar.lua

and some Lua code in foo.lua like

  require("foo.bar")

This is supported by kpathsea, even with .tex files (\input foo/bar )
and another bar.tex in the current directory.

$ tex foo
This is TeX, Version 3.1415926 (TeX Live 2013)
(/home/reinhard/texmf/tex/plain/foo.tex
(/home/reinhard/texmf/tex/plain/foo/bar.tex) )
No pages of output.

But when uploading the package to CTAN it's advisable to mention that
the directory structure is relevant.

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