On Thu, 04 Oct 2012 13:27:40 +0200, Hans Hagen
On 4-10-2012 12:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Personally - I've been using "require <file-name>" so far at many places and there was no problem with it.
try with
\enabletrackers[resolvers.libraries]
- OK - ---- \enabletrackers[resolvers.libraries] \startluacode require "Test-U" \stopluacode \starttext A \stoptext ---- - I'm getting: " C:\Lukas\ConTeXt\Test>t-Req.mkiv C:\Lukas\ConTeXt\Test>set PATH=c:\ConTeXt\tex\texmf-mswin\bin;C:\Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Autodesk Shared\;C:\PROGRA~1\COMMON~1\AUTODE~1\GIS\IMPORT~1\1.0;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Lua\5.1;C:\Program Files\Lua\5.1\clibs;C:\Lukas\..\Programs.Con\Ponton;C:\Program Files\Pandoc\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Tesseract-OCR;C:\Lukas/Bat ;C:\Lukas/../Programs.Con;;C:\PROGRA~1\COMMON~1\AUTODE~1 C:\Lukas\ConTeXt\Test>rem The lowercase "c:" if fatally necesssary! C:\Lukas\ConTeXt\Test>set TEXMFHOME=;C:\Lukas\ConTeXt\Fonts mtx-context | run 1: luatex --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en" --interaction="nonstopmode" --jobname="t-Req" --lua="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui" --no-parse-first-line --c:FILE="t-Req.mkiv" --c:currentrun=1 --c:fulljobname="C:/Lukas/ConTeXt/Test/t-Req.mkiv" --c:halt-on-error --c:input="C:/Lukas/ConTeXt/Test/t-Req.mkiv" --c:kindofrun=1 --c:mode="t-Req" --c:nonstopm ode "cont-yes.mkiv" This is LuaTeX, Version beta-0.70.2-2012092822 (TeX Live 2012/W32TeX) \write18 enabled. (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2012.10.02 22:03 MKIV fmt: 2012.10.4 int: english/english system > cont-new.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) fonts > latin modern fonts are not preloaded languages > language en is active (C:/Lukas/ConTeXt/Test/t-Req.mkiv resolvers > libraries > ! locating "Test-U" as "Test-U.lua" using formats "texlua" resolvers > libraries > ! checking for "Test-U.lua"' using format "tex" resolvers > libraries > ! checking for "Test-U.lua"' using format "lua" resolvers > libraries > ! locating "Test-U" as "Test-U.dll" using formats "lib" resolvers > libraries > ! checking for "Test-U.dll"' using format "lib" resolvers > libraries > ! locating "Test-U" as "Test-U.lua" on "lua" paths resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "." resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "C:/Lukas/ConTeXt/Fonts" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-project" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-fonts" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-local" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-modules" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-context" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-mswin" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf/tex/context/" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "/tex/plain/base/" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "/tex/generic/" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf/scripts/context/lua/" resolvers > libraries > ! locating "Test-U" as "Test-U.lua" on "lua" paths resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "." resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-mswin/bin/lib/context/lua/" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-mswin/bin/lib/luatex/lua/" resolvers > libraries > ! checking for "Test-U.lua" using "lua" path "c:/ConTeXt/tex/texmf-mswin/bin/lib/lua/" resolvers > libraries > ! locating "Test-U" as "Test-U.dll" on "lib" paths resolvers > libraries > ! checking for "Test-U.dll" using "lib" path "." resolvers > libraries > ! checking for "Test-U.dll" using "lib" path "c:/ConTeXt/tex/texmf-mswin/bin/lib/context/lua/" resolvers > libraries > ! checking for "Test-U.dll" using "lib" path "c:/ConTeXt/tex/texmf-mswin/bin/lib/luatex/lua/" resolvers > libraries > ! checking for "Test-U.dll" using "lib" path "c:/ConTeXt/tex/texmf-mswin/bin/lib/lua/" resolvers > libraries > ! locating "Test-U" using normal loader resolvers > libraries > ? unable to locate library "Test-U" ! LuaTeX error <main ctx instance>:2: module 'Test-U' not found: no field package.preload['Test-U'] no file 'Test-U.dll' no file 'c:\Program Files\Lua\5.1\clibs\Test-U.dll' no file 'C:\Lukas\Lua\Test-U.dll' stack traceback: [C]: in function 'require' <main ctx instance>:2: in main chunk. system > tex > error on line 5 in file C:/Lukas/ConTeXt/Test/t-Req.mkiv: LuaTeX error ... 1 \enabletrackers[resolvers.libraries] 2 3 \startluacode 4 require "Test-U" 5 >> \stopluacode 6 7 \starttext 8 A 9 \stoptext 10 } require "Test-U".erocount { \luat_start_lua_code_indeed ...ua \zerocount {#1}} l.5 \stopluacode ... "
btw, you should adapt LUAINPUTS and not some other environment variable
OK, so what does it mean practically? Should I define a new system variable LUAINPUTS to have similar content as LUA_PATH and LUA_CPATH are having? Or LUAINPUTS is a (Con|Lua)TeX(t) internal variable and should be modified another way? Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038