[metapost] Embedded METAPOST source?

Dan Luecking luecking at uark.edu
Mon May 17 19:50:28 CEST 2010

At 10:59 AM 5/16/2010, Wolfgang Schuster wrote:
>Am 16.05.10 18:52, schrieb Karel:
>>>Is it possible to include the .mp source directly in the .tex 
>>>file? And have it "just work"?
>>It is possible when using luaTeX:-)
>You don't need LuaTeX, ConTeXt can use inline MetaPost graphics also with
>pdfTeX and XeTeX. For LaTeX there is AFAIK the mfpicture package with
>the same function.

I've never heard of mfpicture. If you mean mfpic, it allows direct
writing of mp source code (though literal backslashes and ~ require
special treatment), and will handle the naming and inclusion of
graphics, and it works in plain (pdf)tex, but that is not really its
main purpose.

A more direct approach is the emp package, which requires latex.


Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas

More information about the metapost mailing list