[NTG-context] Howto have page size to fit with image size

Wolfgang Schuster schuster.wolfgang at googlemail.com
Wed Jun 20 20:11:14 CEST 2007


On Wed, 20 Jun 2007 19:22:14 +0200
Patrick Gundlach <patrick at gundla.ch> wrote:

> Jean Magnan de Bornier <jm.bornier at free.fr> writes:
> 
> > Hi all,
> > I want to produce a unique metapost image which should be alone on its
> > page and its file, and I want to have a page the size of the image,
> > whichever this size is.
> 
> use \startTEXpage:
> 
> \setupcolors[state=start]
> %\setuplayout[width=fit,height=fit]
> \starttext
> \startTEXpage
> \startuseMPgraphic{dummy}
>   fill fullcircle scaled 5cm withcolor red ;
> \stopuseMPgraphic
> \useMPgraphic{dummy}
> \stopTEXpage
> \stoptext
> 
> Patrick

we have also \startMPpage:

\setupcolors[state=start]
\starttext
\startMPpage
  fill fullcircle scaled 5cm withcolor red ;
\stopMPpage
\stoptext

Wolfgang


More information about the ntg-context mailing list