Hi Hans, The example with clearboxes's crash: \setupoutput[pdftex] \starttext \startuseMPgraphic{my_uml_figure} input metauml; Class.A("Point") ("+x: int", "+y: int") (); Class.B("Circle") ("radius: int") ("+getRadius(): int", "+setRadius(r: int):void"); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); \stopuseMPgraphic \placefigure[here]{none}{\useMPgraphic{my_uml_figure}} \stoptext The resulting pdf looks good... strange... I use teTeX on debian + metapost 0.901 renaud@rescue:/usr/share/texmf-tetex/metapost/base$ grep clearboxes * boxes.mp: expandafter def expandafter clearboxes expandafter = boxes.mp: clearboxes cl($); boxes.mp: & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=enddef;"; boxes.mp:extra_endfig := extra_endfig & "clearboxes;"; Now, I have solved my problem with this (horrible!?) hack: \startuseMPgraphic{my_uml_figure} input metauml; beginfig(1); Class.A("Point") ("+x: int", "+y: int") (); Class.B("Circle") ("radius: int") ("+getRadius(): int", "+setRadius(r: int):void"); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); endfig; \stopuseMPgraphic I don't want to put "input metauml;" within MPinclusions because for my PhD thesis, I have a lot of MPgraphic (without MetaUML) and: 1. I don't want to load metauml for each metapost run 2. I use MetaObj... (MetaUML and MetaObj interfere to each other) Cheers, Renaud Hans Hagen a écrit :
Renaud AUBIN wrote:
clearboxes
! Isolated expression.
can you grep your metapost tree for 'clearboxes'? where is it defined?
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