[pdftex] Metapost in pdftex

Maurí­cio briqueabraque at yahoo.com
Tue Jul 17 16:06:15 CEST 2007


>>> 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
> 

ConTeXt was actually the first one I ever learned,
before Tex and Latex. In the end, since I'm really
a begginer, I  decided that learning  Tex would be
easier,   since  there   are  more   examples  and
documentation available.  ConTeXt is made  of many
pieces of  software, and I was never  able to find
from which of them  my many errors come from. That
said, it's  a great  system, and I  really enjoyed
using it.

Best,
Maurício



More information about the pdftex mailing list