[lltx] problem with luamplib from TL2010 (pretest)

Khaled Hosny khaledhosny at eglug.org
Mon Sep 13 19:24:52 CEST 2010


On Mon, Sep 13, 2010 at 06:59:17PM +0200, Ulrike Fischer wrote:
> Am Mon, 13 Sep 2010 18:27:44 +0200 schrieb Stephan Hennig:
> 
> > Hi,
> > 
> > I have a problem with luamplib v1.03 and lualatex v0.60.2 from TL2010 
> > pretest (updated today).  The following TeX example successfully runs 
> > through luatex:
> > 
> > \input luamplib.sty
> > \mplibcode
> > beginfig(1);
> >          draw fullcircle scaled 100;
> > endfig;
> > \endmplibcode
> > \bye
> > 
> > But this similar LaTeX example cannot be processed by lualatex:
> > 
> > \listfiles
> > \documentclass{article}
> > \usepackage{luamplib}
> > \begin{document}
> > \begin{mplibcode}
> > beginfig(1);
> > draw fullcircle scaled 100;
> > endfig;
> > \end{mplibcode}
> > \end{document}
> > 
> > 
> > The resulting pdf file contains the literal line
> > 
> >    luamplib.processlines()
> > 
> > plus page number.  Log file attached.
> 
> >> ! Undefined control sequence.
> >> \endmplibcode ...plibaddlines {memoire}\luadirect
> >>                                                   {luamplib.processlines()}
> >> l.9 \end{mplibcode}
> 
> Well I do have luamplib version 1.04 which avoids this error (it
> should be \directlua instead of \luadirect I think) but now gives
> another error with luatex and lualatex:
> 
> ! LuaTeX error j:/MIKTEX2.7/tex/luatex/luamplib/luamplib.lua:74: bad
> argument #2 to 'format' (string expected, got nil)
> stack traceback:
> 	
> [C]: in function 'format'
> 	
> j:/MIKTEX2.7/tex/luatex/luamplib/luamplib.lua:74: in function 'log'
> 	
> j:/MIKTEX2.7/tex/luatex/luamplib/luamplib.lua:124: in function
> 'load'
> 	j:/MIKTEX2.7/tex/luatex/luamplib/luamplib.lua:170: in
> function 'process'
> 	<\directlua >:1: in main chunk.
> \mplibprocess
> ...ectlua {luamplib.process([[#1]])}

I can't reproduce this, but indeed `luamplib.finder()` is returning
nil. May be you need to run `luamplib-createmem.lua` script to create a
mem file, seems miktex does not provide one by default.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


More information about the lualatex-dev mailing list