[tex-live] Lua module installation

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Dec 10 21:54:40 CET 2007


Hello,

I am having trouble with Lua modules having
subdirectory components.

Example scenario:

Package "foobar" with module "foobar.hello".
Lua then looks for "foobar/hello.lua" in standard search places.

The natural choice for the TDS location seems to be:
  TDS:scripts/foobar/hello.lua

Another package can have:
  TDS:scripts/world/hello.lua

This is not a violation of TDS, because it doesn't require
unique file names below TDS:scripts.

Unhappily kpsewhich doesn't support subdirectory components
in the file name:
  kpsewhich --format=texmfscripts foobar/hello.lua
returns nothing and
  kpsewhich --format=texmfscripts hello.lua
isn't reliable, the result can be "foobar/hello.lua" or "world/hello.lua".

How can this problem be efficently solved?

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the tex-live mailing list