* scaling the mp figure in ConTeXt
@ 2011-11-14 7:23 Jeong Dalyoung
2011-11-14 8:23 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Jeong Dalyoung @ 2011-11-14 7:23 UTC (permalink / raw)
To: ntg-context
Dear all,
I use MetaFun to create a figure and embed it using \processMPbuffer[].
for example,
\startbuffer[test]
draw fullcircle scaled 3cm;
\stopbuffer
\starttext
\placefigure[][]{}
\processMPbuffer[test]
\stoptext
But sometimes, I need to rescaling the mp figure to fit the page.
Is there a way of rescaling the figure at the stage \processMPbuffer or \useMPgraphic?
In the above example, I got a circle of radius 3cm. How to get a circle of radius 2cm?
Thank you for reading.
best regards,
Dalyoung
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: scaling the mp figure in ConTeXt
2011-11-14 7:23 scaling the mp figure in ConTeXt Jeong Dalyoung
@ 2011-11-14 8:23 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-11-14 8:23 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dalyoung
On 14-11-2011 08:23, Jeong Dalyoung wrote:
> \startbuffer[test]
> draw fullcircle scaled 3cm;
> \stopbuffer
>
> \starttext
> \placefigure[][]{}
> \processMPbuffer[test]
> \stoptext
currentpicture := currentpicture xsized(TextWidth) ;
or
\placefigure[][]{}{\scale[width=\textwidth]{\processMPbuffer[test]}}
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-14 8:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-14 7:23 scaling the mp figure in ConTeXt Jeong Dalyoung
2011-11-14 8:23 ` Hans Hagen
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).