1.编写mp文件
2.运行 mpost haha.mp,会得到haha.1文件,这个文件是postscript格式的,可以用epstopdf转成pdf.texlive2010已经带了mpost和epstopdf
3.编写tex文件
直接用/includegraphics{haha.1}的话会出现下面这个错误
The requested image couldn't be read because
it was not a recognized image format.
可以通过改扩展名或者在导言区添加/DeclareGraphicsRule{*}{eps}{*}{}解决。
4.编译后的pdf效果如下