[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 <<'@@@'
  Some text, a drawing (%
  draw (0,0)--(100,0)--(100,100)--(0,100)--cycle;
  ), more text
  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.
  LaTeX2e <2011/06/27>
  LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation
patterns for engl
  ish, dumylang, nohyphenation, loaded.
  Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
  Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
  <2008/02/07> (tvz)
  ! 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.

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


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

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