[OS X TeX] metapost using pdflatex
Joseph C. Slater
joseph.slater at wright.edu
Sat Mar 23 23:23:09 CET 2002
Obviously I'm missing something, because I'm not finding much of
anything in the way of documentation. If you have a simple example of
how to make a standalone PDF (or eps for that matter!), I could probably
make use of it. However, I have no idea of how ConTeXt fits into
anything because I can't find a manual. Does it replace LaTeX? Does it
replace the interface to MP? For now I'll have to just deal with
non-stand alone .mps files. I know this can't be that hard, but without
the document that says how it works, I'm dead in the water. However, the
change the extension to .mps and use it directly in pdflatex is probably
good enough.
Thanks,
Joe
On Saturday, March 23, 2002, at 12:46 PM, Arun Mangalam wrote:
> Hello,
>
> Just as Radhakrishnan suggested, ConTeXt has internal support for
> MetaPost. You can easily create STANDALONE MetaPost pdf's [or any
> picture/movies for that matter]. In fact, I asked about that in the
> ConTeXt mailing list. :)
>
> - Arun
>
> P.S. Here's an interesting stand-alone example embedding a jpeg with
> MetaPost:
>
> \setupcolors[state=start]
>
> \startMPclip{text clip}
> clip currentpicture to fullcircle shifted (.5,.5)
> xscaled \width yscaled \height ;
> \stopMPclip
>
> \startuseMPgraphic{clip outline}
> draw fullcircle
> xscaled \overlaywidth yscaled \overlayheight
> withpen pencircle scaled 3mm
> withcolor .625red ;
> \stopuseMPgraphic
>
> \defineoverlay
> [clip outline]
> [\useMPgraphic{clip outline}]
>
> \starttext
> \startTEXpage[scale=3000,offset=5pt]
> {\framed
> [background=clip outline,offset=overlay,frame=off]
> {\clip
> [nx=1,ny=1,mp=text clip]
>
> {\externalfigure[escher_ascending][type=jpg,width=3cm,height=3cm]}}}
> \stopTEXpage
> \stoptext
>
> On Friday, March 22, 2002, at 05:03 PM, Joseph C. Slater wrote:
>
>> I've tried using metapost to generate eps files, convert them to pdf,
>> and embed them into pdflatex, but the text doesn't show up in the eps
>> or the pdf file. Going the old latex->dvi->ps->pdf works fine, but I'd
>> like to stick to pdflatex if possible (I'm getting comfortable with
>> it). Is there another way at it using metapost (like metapdf?).
>> thanks,
>> Joe
>
>
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to <info at email.esm.psu.edu> with
> "help" (no quotes) in the body.
> -----------------------------------------------------------------
-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
-----------------------------------------------------------------
More information about the macostex-archives
mailing list