[lltx] luamplib (a nil value)
Arno Trautmann
Arno.Trautmann at gmx.de
Sun Dec 26 10:19:17 CET 2010
Sorry, forgot to cc to list:
Manuel Pégourié-Gonnard wrote:
> Le 25/12/2010 14:38, Arno Trautmann a écrit :
>> I can only guess that luamplib.lua tries to access
>> luatexbase.module_term('luamplib', format(...))
>> in line 77. I guess further this should be defined in luatexbase, but is
>> not.
>
> You're guessing right. Sorry for missing that. I'll publish an update soon.
>
> As a temporary workaround,
>
> function luatexbase.module_term(_, s)
> texio.write_nl('term', s)
> end
Thanks, that seems to fix the problem on the TeX-side. But now I get an
error from MetaPost, see below. Am I doing something wrong with this
document?
————
\documentclass{minimal}
\usepackage{luamplib}
\directlua{
function luatexbase.module_term(_, s)
texio.write_nl('term', s)
end
}
\begin{document}
\begin{mplibcode}
\end{mplibcode}
\end{document}
————
This is MetaPost, Version 1.503
(plain.mp
>> $Id
! Isolated expression.
<to be read again>
:
l.1 $Id:
plain.mp,v 1.3 2005/04/28 06:45:21 taco Exp $
! Extra tokens will be flushed.
<to be read again>
:
l.1 $Id:
plain.mp,v 1.3 2005/04/28 06:45:21 taco Exp $
>> base_name
>> "plain"
! Equation cannot be performed (numeric=string).
<to be read again>
;
l.8 ...base_name, base_version; base_name="plain";
base_version="1.004";
>> base_version
>> "1.004"
! Equation cannot be performed (numeric=string).
<to be read again>
;
l.8 ...n; base_name="plain"; base_version="1.004";
>> "Preloading the plain mem file, version "
>> base_version
! Not implemented: (string)&(unknown numeric).
<to be read again>
;
l.10 ...he plain mem file, version "&base_version;
>> base_version
! Not a string.
<to be read again>
;
l.10 ...he plain mem file, version "&base_version;
)
! Attempt to close the bottom level file!.
l.576 defaultpen := savepen;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20101226/4ade468f/attachment.bin>
More information about the lualatex-dev
mailing list