Howto have page size to fit with image size
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. I tried this: \setupcolors[state=start] \setuplayout[width=fit,height=fit] \starttext \startuseMPgraphic{dummy} fill fullcircle scaled 5cm withcolor red ; \stopuseMPgraphic \useMPgraphic{dummy} \stoptext But the setuplayout options don't seem to provide what I want. Thank for any hint to have the page size automatically ajust. -- Jean
Jean Magnan de Bornier
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 -- ConTeXt wiki and more: http://contextgarden.net
On Wed, 20 Jun 2007 19:22:14 +0200
Patrick Gundlach
Jean Magnan de Bornier
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
Le 20 juin à 20:11:14 Wolfgang Schuster
| > Jean Magnan de Bornier
| 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
participants (3)
-
Jean Magnan de Bornier
-
Patrick Gundlach
-
Wolfgang Schuster