[pdftex] Metapost in pdftex

Thanh Han The hanthethanh at gmail.com
Sun Jul 15 10:55:27 CEST 2007


you can  also look at samplepdf.tex which contains an
example how to have metapost code within a tex file. This is
not however portable and is very low-level.

Thanh

On Sat, Jul 14, 2007 at 06:00:14PM -0300, George N. White III wrote:
> 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
> reliably.
>
> >         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:
>
> http://wiki.contextgarden.net/Mpgraphic
>
> --
> George N. White III <aa056 at chebucto.ns.ca>
> Head of St. Margarets Bay, Nova Scotia
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex


More information about the pdftex mailing list