[luatex] Using the plain format fails

Philipp Gesang philipp.gesang at alumni.uni-heidelberg.de
Tue Feb 12 13:47:42 CET 2013


Hi Marco,

···<date: 2013-02-12, Tuesday>···<from: Marco Patzer>···

> with plainTeX I get the follwing error:
> 
> This is LuaTeX, Version beta-0.74.0-2012122510 (rev 4541)
>  \write18 enabled.
> (./t.tex
> (/home/marco/usr/local/share/context-beta/tex/texmf-context/tex/generic/context
> /luatex/luatex-basics.tex)
> (/home/marco/usr/local/share/context-beta/tex/texmf-context/tex/generic/context
> /luatex/luatex-fonts.tex <push namespace> </home/marco/usr/local/share/context-
> beta/tex/texmf-context/tex/generic/context/luatex/luatex-fonts-merged.lua>
> ! LuaTeX error ...ntext/tex/generic/context/luatex/luatex-fonts-merged.lua:21:
> attempt to call global 'setinspector' (a nil value)
> stack traceback:
> 	...ntext/tex/generic/context/luatex/luatex-fonts-merged.lua:21: in main chunk
> 	[C]: in function 'dofile'
> 	...exmf-context/tex/generic/context/luatex/luatex-fonts.lua:103: in function '
> loadmodule'
> 	...exmf-context/tex/generic/context/luatex/luatex-fonts.lua:107: in main chunk
> 
> 	[C]: in function 'dofile'
> 
> Building the format succeeds. Steps to reproduce:
> 
> %% file: luatex-plain.tex
> \input plain
> \directlua {tex.enableprimitives('', tex.extraprimitives())}
> \pdfoutput=1
> \everyjob \expandafter {%
>     \the\everyjob
>     \input luatex-basics\relax
>     \input luatex-fonts\relax
>     \input luatex-mplib\relax
> }
> \edef\fmtversion{\fmtversion+luatex}
> \dump
> 
> $ luatex --ini luatex-plain.tex
> 
> %% file test.tex
> FooBar
> \bye
> 
> $ luatex --fmt=luatex-plain.fmt test.tex
> 
> It compiles if the line
> 
>     \input luatex-fonts\relax
> 
> is commented out.

if you re-enable loading of l-lua.lua in
texmf-context/tex/generic/context/luatex/luatex-fonts.lua and
rebuild the format, your example should work again:

    --- luatex-fonts.lua.orig	2013-02-12 13:10:42.903959955 +0100
    +++ luatex-fonts.lua	2013-02-12 13:11:21.488379154 +0100
    @@ -132,7 +132,7 @@
        -- to using luatex-fonts with luatex-fonts-merged.lua and forget about the rest. The following
        -- list might change without prior notice (for instance because we shuffled code around).
    
    -    ----------("l-lua.lua")
    +    loadmodule("l-lua.lua")
        loadmodule("l-lpeg.lua")
        loadmodule("l-function.lua")
        loadmodule("l-string.lua")

(This appears to have been introduced along with the changes from
2013-02-05:
<http://repo.or.cz/w/context.git/commitdiff/4da65414b21ec97421091a2df4306455f8ed1146> )

Regards
Philipp


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20130212/9b6d4769/attachment.bin>


More information about the luatex mailing list