[luatex] Using luarepl with lualatex - how do I get lua5.1's behavior for "require"?

Dirk Laurie dirk.laurie at gmail.com
Thu Feb 12 22:06:08 CET 2015


2015-02-12 22:19 GMT+02:00 Eduardo Ochs <eduardoochs at gmail.com>:

> However, if I run "cd /tmp/; lulatext myrepl.tex" it fails with:

Assuming that `lulatext` means `lualatex`, I can reproduce this
behaviour.

>   This is LuaTeX, Version beta-0.70.2-2012070301 (TeX Live 2012/Debian)
>    restricted \write18 enabled.
>   (./myrepl.tex
>   LaTeX2e <2011/06/27>
>   LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation patterns for
>   english, dumylang, nohyphenation, loaded.
>   (/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
>   Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
>   (/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo)) (./myrepl.aux)
>   ! LuaTeX error myrepl.lua:5: module 'repl' not found:
>           no field package.preload['repl']
>           [kpse lua searcher] file not found: 'repl'
>           [kpse C searcher] file not found: 'repl'

This shows that your own package,path is ignored, and kpse is
used instead.


More information about the luatex mailing list