[luatex] Newbie problem with luamplib, part 1

Eduardo Ochs eduardoochs at gmail.com
Fri May 2 00:52:22 CEST 2014


Hi list,

I am trying to use luamplib to create some drawings, but all my
attempts to follow the recipes that I found at the web are failing at
essentially the same point... for example, this shell code

  cd /tmp/
  cat > luamplibtest.tex <<'@@@'
  \documentclass[a4paper]{article}
  \usepackage{luamplib}
  \begin{document}
  Some text, a drawing (%
  \begin{mplibcode}
  beginfig(1);
  draw (0,0)--(100,0)--(100,100)--(0,100)--cycle;
  endfig;
  \end{mplibcode}
  ), more text
  \end{document}
  @@@
  lualatex luamplibtest.tex

yields this:

  /tmp(edrx:la)# lualatex luamplibtest.tex
  This is LuaTeX, Version beta-0.70.2-2012070301 (TeX Live 2012/Debian)
   restricted \write18 enabled.
  (./luamplibtest.tex
  LaTeX2e <2011/06/27>
  LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation
patterns for engl
  ish, dumylang, nohyphenation, loaded.
  (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
  Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
  (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
  (/usr/share/texlive/texmf-dist/tex/luatex/luamplib/luamplib.sty
  (/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.sty
  (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
  (/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/luatexbase-loader.sty
  (/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/luatexbase-compat.sty)
  (/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/luatexbase.loader.lua))
  (/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/modutils.lua))
  (/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
  Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
  <2008/02/07> (tvz)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
  ))
  (/usr/share/texlive/texmf-dist/tex/luatex/luamplib/luamplib.lua))
  (./luamplibtest.aux)
  ! LuaTeX error
.../texlive/texmf-dist/tex/luatex/luamplib/luamplib.lua:85: Modu
  le luamplib error: unknown error, no error, terminal or log
messages, maybe mis
  sing beginfig/endfig

  stack traceback:
        [C]: in function 'error'
        ...exlive/texmf-dist/tex/luatex/luatexbase/modutils.lua:26: in
function 'module_error_int'
        ...exlive/texmf-dist/tex/luatex/luatexbase/modutils.lua:45: in
function 'err'
        .../texlive/texmf-dist/tex/luatex/luamplib/luamplib.lua:85: in
function 'report'
        .../texlive/texmf-dist/tex/luatex/luamplib/luamplib.lua:99: in
function 'process'
        .../texlive/texmf-dist/tex/luatex/luamplib/luamplib.lua:34: in
function 'processlines'
        <\directlua >:1: in main chunk.
  \endmplibcode ...rectlua {luamplib.processlines()}

  l.9 \end{mplibcode}

  ? x
   384 words of node memory still in use:
     2 hlist, 1 rule, 4 glue, 18 glyph, 40 glue_spec, 1 temp, 1 write,
1 local_pa
  r, 1 dir nodes
     avail lists: 2:11,3:1,7:1,9:2
  No pages of output.
  Transcript written on luamplibtest.log.
  /tmp(edrx:la)#

Any hints? I am running Debian stable here, and luatex
beta-0.70.2-2012070301 ... I tried to compile a newer version of
luatex from

https://foundry.supelec.fr/frs/download.php/file/15761/luatex-beta-0.79.0-source.tar.bz2

but the compilation failed, with an error that I will send in another
e-mail in a few minutes...

  Thanks in advance,
    Eduardo Ochs
    eduardoochs at gmail.com
    http://angg.twu.net/
    http://angg.twu.net/dednat4.html



P.S.: I indented each of the code/log lines above with two spaces to
make the message look nicer.



More information about the luatex mailing list