ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sizing MPpage
@ 2011-09-19 13:38 Meer, H. van der
  2011-09-19 13:49 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Meer, H. van der @ 2011-09-19 13:38 UTC (permalink / raw)
  To: NTG ConTeXt

How can one set the size of a \startMPpage..\stopMPpage generated picture. For example forcing its dimensions to 5X4cm. Or better still, derived from variables in the code.

Hans van der Meer

___________________________________________________________________________________
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] 3+ messages in thread

* Re: sizing MPpage
  2011-09-19 13:38 sizing MPpage Meer, H. van der
@ 2011-09-19 13:49 ` Aditya Mahajan
  2011-09-19 14:20   ` Meer, H. van der
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-09-19 13:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 19 Sep 2011, Meer, H. van der wrote:

> How can one set the size of a \startMPpage..\stopMPpage generated 
> picture. For example forcing its dimensions to 5X4cm. Or better still, 
> derived from variables in the code.

Add something like

setbounds currentpicture to (fullsquare xyscaled (5cm,4cm)) ;

at the end of the MP code.

Aditya
___________________________________________________________________________________
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] 3+ messages in thread

* Re: sizing MPpage
  2011-09-19 13:49 ` Aditya Mahajan
@ 2011-09-19 14:20   ` Meer, H. van der
  0 siblings, 0 replies; 3+ messages in thread
From: Meer, H. van der @ 2011-09-19 14:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks,
This does the trick for me.
Hans van der Meer

On 19 sep. 2011, at 15:49, Aditya Mahajan wrote:

> On Mon, 19 Sep 2011, Meer, H. van der wrote:
> 
>> How can one set the size of a \startMPpage..\stopMPpage generated picture. For example forcing its dimensions to 5X4cm. Or better still, derived from variables in the code.
> 
> Add something like
> 
> setbounds currentpicture to (fullsquare xyscaled (5cm,4cm)) ;
> 
> at the end of the MP code.
> 
> Aditya
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2011-09-19 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-19 13:38 sizing MPpage Meer, H. van der
2011-09-19 13:49 ` Aditya Mahajan
2011-09-19 14:20   ` Meer, H. van der

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).