13 Mar
2020
13 Mar
'20
1:24 p.m.
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