* Howto have page size to fit with image size
@ 2007-06-20 16:41 Jean Magnan de Bornier
2007-06-20 17:22 ` Patrick Gundlach
0 siblings, 1 reply; 5+ messages in thread
From: Jean Magnan de Bornier @ 2007-06-20 16:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto have page size to fit with image size
2007-06-20 16:41 Howto have page size to fit with image size Jean Magnan de Bornier
@ 2007-06-20 17:22 ` Patrick Gundlach
2007-06-20 18:11 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2007-06-20 17:22 UTC (permalink / raw)
To: ntg-context
Jean Magnan de Bornier <jm.bornier@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
--
ConTeXt wiki and more: http://contextgarden.net
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto have page size to fit with image size
2007-06-20 17:22 ` Patrick Gundlach
@ 2007-06-20 18:11 ` Wolfgang Schuster
2007-06-20 18:14 ` Patrick Gundlach
2007-06-21 5:45 ` Jean Magnan de Bornier
0 siblings, 2 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2007-06-20 18:11 UTC (permalink / raw)
To: ntg-context
On Wed, 20 Jun 2007 19:22:14 +0200
Patrick Gundlach <patrick@gundla.ch> wrote:
> Jean Magnan de Bornier <jm.bornier@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto have page size to fit with image size
2007-06-20 18:11 ` Wolfgang Schuster
@ 2007-06-20 18:14 ` Patrick Gundlach
2007-06-21 5:45 ` Jean Magnan de Bornier
1 sibling, 0 replies; 5+ messages in thread
From: Patrick Gundlach @ 2007-06-20 18:14 UTC (permalink / raw)
To: ntg-context
> we have also \startMPpage:
>
> \setupcolors[state=start]
> \starttext
> \startMPpage
> fill fullcircle scaled 5cm withcolor red ;
> \stopMPpage
> \stoptext
Great! I keep forgetting those.
Patrick
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto have page size to fit with image size
2007-06-20 18:11 ` Wolfgang Schuster
2007-06-20 18:14 ` Patrick Gundlach
@ 2007-06-21 5:45 ` Jean Magnan de Bornier
1 sibling, 0 replies; 5+ messages in thread
From: Jean Magnan de Bornier @ 2007-06-21 5:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Le 20 juin à 20:11:14 Wolfgang Schuster <schuster.wolfgang@googlemail.com> écrit notamment:
| On Wed, 20 Jun 2007 19:22:14 +0200
| Patrick Gundlach <patrick@gundla.ch> wrote:
>
| > Jean Magnan de Bornier <jm.bornier@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-06-21 5:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20 16:41 Howto have page size to fit with image size Jean Magnan de Bornier
2007-06-20 17:22 ` Patrick Gundlach
2007-06-20 18:11 ` Wolfgang Schuster
2007-06-20 18:14 ` Patrick Gundlach
2007-06-21 5:45 ` Jean Magnan de Bornier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).