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.

Best regards,
Stephan Hennig


> >lualatex latex-luatex
This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736)  
(format=lualatex 2010.8.31)  13 SEP 2010 18:05
 restricted \write18 enabled.
**latex-luatex.tex
(./latex-luatex.tex
LaTeX2e <2009/09/24>
LuaTeX adaptation of babel <v3.8l-luatex-1.4> and hyphenation patterns for engl
ish, dumylang, nohyphenation, loaded.
(f:/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(f:/texlive/2010/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\...@part=\count79
\...@section=\count80
\...@subsection=\count81
\...@subsubsection=\count82
\...@paragraph=\count83
\...@subparagraph=\count84
\...@figure=\count85
\...@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(f:/texlive/2010/texmf-dist/tex/luatex/luamplib/luamplib.sty
Package: luamplib 2010/05/10 v1.03 mplib package for LuaTeX.

(f:/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.sty
Package: luatexbase-modutils 2010/05/27 v0.2a Module utilities for LuaTeX

(f:/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX detected.
)
(f:/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-loader.sty
Package: luatexbase-loader 2010/05/27 v0.2a Lua module loader for LuaTeX

(f:/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-compat.sty
Package: luatexbase-compat 2010/05/27 v0.2a Compatibility tools for LuaTeX
)
(f:/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase.loader.lua))
(f:/texlive/2010/texmf-dist/tex/luatex/luatexbase/modutils.lua))
(f:/texlive/2010/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Package: fancyvrb 2008/02/07

Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz) (f:/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\...@toks@=\toks14
)
\...@codelineno=\count87
\...@infile=\read1
\...@tabbox=\box26
\...@fancyverbline=\count88
\...@stepnumber=\count89
\...@outfile=\write3
)
(f:/texlive/2010/texmf-dist/tex/luatex/luamplib/luamplib.lua)
Lua module: luamplib 2010/05/10 v1.03 Lua package to typeset Metapost with LuaT
eX's MPLib.
\mplibscratchbox=\box27
)
No file latex-luatex.aux.
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
! Undefined control sequence.
\endmplibcode ...plibaddlines {memoire}\luadirect
                                                  {luamplib.processlines()}
l.9 \end{mplibcode}

?
[1

{f:/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./latex-luatex.aux)

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
luamplib.sty    2010/05/10 v1.03 mplib package for LuaTeX.
luatexbase-modutils.sty    2010/05/27 v0.2a Module utilities for LuaTeX
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
luatexbase-loader.sty    2010/05/27 v0.2a Lua module loader for LuaTeX
luatexbase-compat.sty    2010/05/27 v0.2a Compatibility tools for LuaTeX
fancyvrb.sty    2008/02/07
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
 ***********

 )

Here is how much of LuaTeX's memory you used:
 688 strings out of 257265
 100000,89155 words of node,token memory allocated
 259 words of node memory still in use:
   2 hlist, 1 vlist, 1 rule, 2 glue, 39 glue_spec, 1 write nodes
   avail lists: 2:12,3:2,4:22,5:1,6:33,7:1,9:6,10:3
 4208 multiletter control sequences out of 65536+200000
 15 fonts using 431807 bytes
 39i,4n,23p,163b,110s stack positions out of 5000i,500n,6000p,200000b,50000s
<f:/texlive/2010/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on latex-luatex.pdf (1 page, 13324 bytes).
PDF statistics: 12 PDF objects out of 1000 (max. 8388607)
 7 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Reply via email to