[luatex] luamplib and Paragraph ended before \mplibdoreplacenewlinebr was complete.

Maxime Chupin notezik at gmail.com
Sat Nov 19 23:01:45 CET 2016


Hi everyone,

Sorry for the title of this mail, it is hard to find a good enough one :).
So I have a file test.lua containing
-----------------
function testMP2()
tex.sprint("\\begin{mplibcode}beginfig(0);")
tex.sprint("draw(0,0)--(2cm,2cm);endfig;\\end{mplibcode}")
end

function testMP()
tex.sprint("\\begin{mplibcode}beginfig(0);draw(0,0)--(2cm,2cm);endfig;\\end{mplibcode}")
end
-----------------

and my test.tex file such as

-----------------
\documentclass[a4paper]{article}
\usepackage{luamplib}

\directlua{
    dofile("test.lua")
}

\begin{document}

\directlua{
    testMP()
}
\end{document}
-----------------

Everything is all right if I use the testMP() function, but if I use the
testMP2() one I get

Runaway argument?
 \end {document}
! File ended while scanning use of \mplibdoreplacenewlinebr.

There is something wrong with the \mplibdoreplacenewlinebr macro in the
package luamplib, but I don't know what. Do you have any clue ?

I am using : LuaTeX, Version 0.95.0 (TeX Live 2016)

Thanks !

-- 
Maxime Chupin
Site personnel : http://fougeriens.org/~mc/
Site professionnel : https://www.ceremade.dauphine.fr/~chupin/
<http://www.ceremade.dauphine.fr/%7Echupin/>
adresse libre : chupin at fougeriens.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20161119/60e74265/attachment.html>


More information about the luatex mailing list