Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typesetting fails when using lualatex's "--lua" option #97

Closed
ecofighter opened this issue Nov 22, 2021 · 1 comment
Closed

Typesetting fails when using lualatex's "--lua" option #97

ecofighter opened this issue Nov 22, 2021 · 1 comment

Comments

@ecofighter
Copy link

Typesetting with lua initialization script fails.

foo.lua

foo = "foo"

test.tex

\documentclass{standalone}
\usepackage{luamplib}
\begin{document}
\directlua{tex.sprint(foo)}
\end{document}

shell output

[~/test][22:29:06]
$ lualatex --lua=foo.lua test.tex
This is LuaHBTeX, Version 1.13.0 (TeX Live 2021/Arch Linux)
 restricted system commands enabled.
(./test.tex
LaTeX2e <2020-10-01> patch level 4
 L3 programming layer <2021-02-18>
(/usr/share/texmf-dist/tex/latex/standalone/standalone.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(/usr/share/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texmf-dist/tex/generic/iftex/ifluatex.sty
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/share/texmf-dist/tex/latex/standalone/standalone.cfg)
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/generic/luatex85/luatex85.sty)
(/usr/share/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/share/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/share/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)))
(/usr/share/texmf-dist/tex/luatex/luamplib/luamplib.stylstat(./--lua=foo.lua) failed: ./--lua=foo.lua: No such file or directory
kpathsea: Can't get directory of program name: ./--lua=foo.lua

luamplib.lua maybe causes this.
I got same error by requring this module.

require.tex

\documentclass{standalone}
\begin{document}
\directlua{require("luamplib")}
\end{document}

shell output

[~/test][22:39:29]
$ lualatex --lua=foo.lua require.tex

...

(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-luatex.def) (./require.aux
) (/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)lstat(./--lua=foo.lua) failed: ./--lua=foo.lua: No such file or directory
kpathsea: Can't get directory of program name: ./--lua=foo.lua

Thanks.

dohyunkim added a commit to dohyunkim/luamplib that referenced this issue Nov 23, 2021
@dohyunkim dohyunkim mentioned this issue Nov 23, 2021
@dohyunkim
Copy link
Contributor

Thanks for the report.
The issue is fixed in v2.21.1 which is sent to CTAN just now.
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants