On 17 mrt 2009, at 20:14, Mojca Miklavec wrote: > On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote: >> In mkii this could be used to add material to metapost runs: >> \startMPinclusions[+] >> ..... >> \stopMPInclusions >> >> This stopped working in the latest stable version I have seen: >> ConTeXt ver: 2008.10.31 13:58 MKIV fmt: 2008.12.17 >> >> Is it already fixed? Or can a quick patch be given? > > What does the [+] do? I usually put multiple \startMPinclusions and > they are all respected (at least it mkii; in mkiv they were not, but > Hans probably fixed something in this respect two weeks ago; I did not > have a chance to test that yet). > > Mojca In january 2006 Hans Hagen wrote to me about the following he promised to include. Could it be this has been forgotten in the mean time? > Hans van der Meer wrote: > >> I thought to incrementally add to MPinclusions by successive blocks >> >> \startMPinclusions >> ...... >> \stopMPinclusions >> >> \startMPinclusions >> ...... >> \stopMPinclusions >> etc. >> >> But according to the generated mp-file it seems to incorporate the >> last one only. >> Is this correct and if so, is it an option to allow appending in >> the above manner? >> Or will that be too difficult to build. > > > (patch supp-mps.tex) > > \def\startMPinclusions > {\dosingleempty\dostartMPinclusions} > > \long\def\dostartMPinclusions[#1]#2\stopMPinclusions % document wide > {\doifelse{#1}{+} > {\@EA\long\@EA\def\@EA\theMPinclusions\@EA > {\theMPinclusions > \writeMPgraphic{#2}}} > {\long\def\theMPinclusions > {% \expanded ! > \@EA\expanded\@EA{\@EA\writeMPgraphic\@EA{\the\MPextensions;}} > % new > \writeMPgraphic{#2}}}} > > \def\MPinclusions > {\dosingleempty\doMPinclusions} > > \long\def\doMPinclusions[#1]#2% > {\startMPinclusions[#1]#2\stopMPinclusions} > > now you can say > > \startMPinclusions[+] .... > > i'll add this feature > > Hans > _______________________________________________