[NTG-context] importing figures in metapost

h h extern pragma at wxs.nl
Tue Jun 14 05:04:46 CEST 2005


Mojca Miklavec wrote:
> andrea valle wrote:
> 
>> But: is it possible to import an external figure inside metapost 
>> giving it a precise place in terms of xy coordinates?
> 
> 
> Sure:
> 
> externalfigure "filename.pdf"
>     xyscaled (theWidth, theHeight)
>     shifted (theLowerLeftX, theLowerLeftY);
> 
> (However, I don't know if there's a way to include a picture without the 
> need to provide width and height explicitly.)

hack:

  texexec --fig=d *.png

and then in the mp file:

   input mpfigs.mp

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list