Mojca Miklavec wrote:
Hello (Hans),
this "minimal" example worked OK in mkiv back in May (most of settings in the code below are just unimportant cosmetics, but otherwise it's difficult to explain the idea behind); now it still works in mkii, but not in mkiv.
\def\mynextmpgraphic{\startMPinclusions erase_picture := 1; \stopMPinclusions}
\startusableMPgraphic{bubble} if erase_picture = 0: draw last_picture; else: % draw a new picture; in mkiv this code is only reached once, % \mynextgraphic does not reset erase_picture fi; \stopusableMPgraphic
The code is ugly anyway, I know, but how should I reset variables to redraw the picture once more?
actually in mkii this will also happen ... texexec --automp verypink.tex but the real solution for your problem is \def\mynextmpgraphic{\startMPinitializations erase_picture := 1; \stopMPinitializations} the inclusions happen once per (whole) run, and the initializations happen per graphic Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------