Hi,


> On 13 Mar 2020, at 12:53, Gerben Wierda <gerben.wie...@rna.nl> wrote:
> 
> Suppose I have this code:
> 
> 
> Can I reuse that varied across follow-up MPPages?

Sure, put the vardef inside \startMPinclusions:

\startMPinclusions
vardef MyShape(expr w, h) =
   ...
enddef ;
\stopMPinclusions
\startMPpage
picture s ; s := MyShape(4cm, 2cm);

draw s;
 . . .
\stopMPpage

\startMPpage
picture s ; s := MyShape(8cm, 4cm);

draw s;
 . . .
\stopMPpage


Taco

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to