[tex-live] lyluatex package
Enrico Gregorio
enrico.gregorio at gmail.com
Sat Feb 17 22:22:00 CET 2018
> On 17 Feb 2018, at 18:50 , Jacques Peron <cataclop at hotmail.com> wrote:
>
> Hello Karl and others,
>
> I have a weird bug with lyluatex, that seems to come from kpse.
> In lyluatex.sty, I call lyluatex.lua like this:
>
> ly = require(kpse.find_file("lyluatex.lua"))
>
> (Before, it was dofile, but the problem is the same.)
>
> If lyluatex.lua is in the same directory as lyluatex.sty, this works; but if (as it is by default with current integration into TeXLive) lyluatex.lua is in texmf-dist/scripts/lyluatex/ and lyluatex.sty in texmf-dist/tex/latex/lyluatex/lyluatex.sty, this fails (kpse.find_file("lyluatex.lua") returns nil). What is weird is that kpsewhich lyluatex.lua gives the expected result.
>
> Any hint to solve it ?
>
Meanwhile, I was experimenting with the following Lua script to be run with texlua:
kpse.set_program_name("kpsewhich")
print(kpse.find_file("lyluatex.lua"))
This prints nil as you reported. On the other hand, if the script is changed into
kpse.set_program_name("kpsewhich --format=lua")
print(kpse.find_file("lyluatex.lua"))
I get (Mac OS X, TeX Live 2017, kpathsea version 6.2.3)
lstat(./kpsewhich --format=lua) failed ...
./kpsewhich --format=lua: No such file or directory
Assertion failed: (ret), function remove_dots, file ../../../texk/kpathsea/progname.c, line 316.
Abort trap: 6
which seems to be something to fix. I mean, maybe the program name is indeed invalid, but
“assertion failed” smells like bad.
Ciao
Enrico
More information about the tex-live
mailing list