[metapost] luamplib

Dan Luecking luecking at uark.edu
Fri Nov 12 19:32:17 CET 2010

At 02:33 AM 11/12/2010, Hans Hagen wrote:

>>In texmf-dist/tex/luatex/luamplib/luamplib.lua, change all occurance of
>it depends ... one could have defined luamplib as alias of mplib or 
>redefined pen_info someplace (the pen_info function has been 
>introduced in later versions of mplib so your change now uses the built-in)

As I said, these things would probably be obvious to an expert.
It is clear from the results that luamplib.pen_info is nil, so
neither of these alternatives was done, and I don't know how to
do either of them. Mostly my solution was a lucky guess.

One assumes that luamplib.flush is somehow doing the equivalent
of recursing through currentpicture and examining the
equivalent of penpart. However, I don't know how to extract the
transform components of an elliptical pen in MetaPost. I'm
guessing mplib has something that regular MetaPost (at least
in version 1.2x) lacks.


Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas

More information about the metapost mailing list