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

Jean Magnan de Bornier jm.bornier at free.fr
Thu Jun 21 07:45:31 CEST 2007


Le 20 juin à 20:11:14 Wolfgang Schuster <schuster.wolfgang at googlemail.com> écrit notamment:

| 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


Patrick and Wolfgang, thak you much; these work fine!
-- 
Jean


More information about the ntg-context mailing list