[NTG-context] sizing MPpage

2011-09-19 Thread Meer, H. van der
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
___


Re: [NTG-context] sizing MPpage

2011-09-19 Thread Aditya Mahajan

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
___


Re: [NTG-context] sizing MPpage

2011-09-19 Thread Meer, H. van der
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
___