[metapost] Question: [MPLib, MetaFun, ConTeXt, LuaTeX] metapost logging and message primitive?

Colin Fraizer metapost at cfraizer.com
Mon Feb 18 13:57:42 CET 2013

I have a METAPOST program that works fine with mpost, but fails when I try
to run it inline in ConTeXt. In order to debug it, I would like to see the
usual METAPOST logging and/or to use the METAPOST "message" primitive.

However, whenever I add "loggingall;" or a message statement to my ConTeXt
file, I encounter errors like this

metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun':
! terminal:

What is the appropriate way to debug problems with inline METAPOST code in

My example file is:

\framed{Hello world.}
This is a simple_test.

fill fullcircle scaled 1in withcolor blue;
label.top(btex This is a test. etex, origin);


I am using TeXLive 2012 on Windows.

I apologize for any vagueness in this question. I'm not really sure how the
various pieces fit together.

Thanks for your help.

More information about the metapost mailing list