[pdftex] Metapost in pdftex

George N. White III gnwiii at gmail.com
Sat Jul 14 23:00:14 CEST 2007

On 7/14/07, Paul Vojta <vojta at math.berkeley.edu> wrote:

> On Sat, Jul 14, 2007 at 02:20:24PM -0300, Maurí­cio wrote:
> > Hi,
> >
> > I've  read in  a document  named 'The  pdfTEX user
> > manual'  that Metapost is  the recommended  way of
> > using  pictures. Sorry  for  asking this  probably
> > obvious  question   here,  since  it   has  to  be
> > somewhere in some documentation, but I wasn't able
> > to find it: how do I include a Metapost picture in
> > a  pdfTEX  document?
> The answer depends on which macro package you are using.  For latex,
> \usepackage{graphicx}.  For plain or amstex, use epsf.tex.  Examples
> are available at:
>         http://math.berkeley.edu/~vojta/tex/samp-l/mpost.html
>         http://math.berkeley.edu/~vojta/tex/samp-p/mpost.html
> for latex and plain/amstex, respectively.  For ConTeXt, see

You can use the latex graphics package with plain tex and the miniltx
macros.  For mpost it may not make much difference, but for arbitrary
eps files I find that graphics finds the bounding box values more

>         http://www.pragma-ade.com/metapost.htm
> > Is  it  possible  to  write
> > Metapost code inside a  .tex file that is going to
> > be read by pdfTEX?
> No.  I wish it was.

In other words, you wish to use ConTeXt, see:


George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

More information about the pdftex mailing list