![](https://secure.gravatar.com/avatar/c83fb4134167a11422c23048fb8a85e3.jpg?s=120&d=mm&r=g)
Thank you. And if I want these in a separate file, what is the correct way to include them?
On 13 Mar 2020, at 13:24, Taco Hoekwater
wrote: Hi,
On 13 Mar 2020, at 12:53, Gerben Wierda
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 ___________________________________________________________________________________