Thomas Engel wrote: > Hello Hans, > > > this is the message I got after running texexec pro_mcc_a3.tex. > As you can see I have increased the memory size for mp. > I have attached the two tex-files. > Maybe there is a mistake in the mp-code. A pdf-file will be produced, > but if you check the output you will see, that one cubicle is missing! > ok, i stripped down the sample to one image and coul dgenerate a page
(btw \twodigitMPoutput will make mem usage less but also the quality) now, the problem is in the way you define your graphic: def Whatever () = save SomePicture ; picture SomePicture ; lots of draws SomePicture := currentpicture ; SomePicture % return value end here you *never* erase the currentpicture, so graphic keeps accumulating, and each SomePicture has all previous draws you can see that on the screen: acrobat takes ages to draw the simple graphic and you can also see it from the mp output (a couple of 100K lines). solution: def Whatever () = save SomePicture ; picture SomePicture ; lots of draws SomePicture := currentpicture ; currentpicture := nullpicture ; % ADDED SomePicture % return value end or just def Whatever () = image ( lots of draws ) end So ... 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 ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context