[luatex] luamplib problem (?)

Dohyun Kim nomosnomos at gmail.com
Sun Jan 25 18:51:55 CET 2015


Hi,

2015-01-26 0:28 GMT+09:00 Herbert Schulz <herbs at wideopenwest.com>:
> Howdy,
>
> I'm using a fully updated TeX Live 2014 on Mac OS X 10.10.1. I just tried to compile
>
> \documentclass{article}
> \usepackage{luamplib}
> \begin{document}
> A%
> \begin{mplibcode}
> beginfig(1);
> fill fullcircle scaled 20;
> endfig;
> \end{mplibcode}
> B\par
> \end{document}
>
> with lualatex and got an error. It used to compile fine. The console error message is
>
> ...
> /LuaMpost.tex:11: LuaTeX error ...texlive/2014/texmf-dist/tex/luatex/luamplib/l
> uamplib.lua:393: attempt to concatenate field 'numbersystem' (a nil value)

Last release of luamplib has introduced a silly bug you discovered and reported.
I will upload a patch to CTAN in a few hours, but it will take a few
days for the new package to reach you. Until then, please apply the
following patch to
...texlive/2014/texmf-dist/tex/luatex/luamplib/luamplib.lua

--- ../src/luamplib/luamplib.lua    2015-01-05 22:00:04.000000000 +0900
+++ /usr/local/texlive/2014/texmf-dist/tex/luatex/luamplib/luamplib.lua
   2015-01-26 02:30:07.000000000 +0900
@@ -390,7 +390,7 @@
 local mplibinstances = {}
 local process = function (data,indeed)
   local standalone, firstpass = not luamplib.codeinherit, not indeed
-  local currfmt = currentformat .. luamplib.numbersystem
+  local currfmt = currentformat .. (luamplib.numbersystem or "scaled")
   currfmt = firstpass and currfmt or (currfmt.."2")
   local mpx = mplibinstances[currfmt]
   if standalone or not mpx then

Sorry for the inconvenience, and thanks for the report.

Regards,
-- 
Dohyun Kim
Seoul, Republic of Korea


More information about the luatex mailing list