From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27627 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt + MetaUML Date: Wed, 03 May 2006 22:55:54 +0200 Message-ID: <445918DA.2080209@nibua-r.org> References: <445772F1.5010605@nibua-r.org> <44590A0D.9020302@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1462599208==" X-Trace: sea.gmane.org 1146689784 31668 80.91.229.2 (3 May 2006 20:56:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 20:56:24 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 03 22:56:23 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbOOI-0000lL-71 for gctc-ntg-context-518@m.gmane.org; Wed, 03 May 2006 22:56:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B08121278A; Wed, 3 May 2006 22:56:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30120-01; Wed, 3 May 2006 22:56:04 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D941012797; Wed, 3 May 2006 22:56:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 456E112797 for ; Wed, 3 May 2006 22:56:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28481-05 for ; Wed, 3 May 2006 22:56:01 +0200 (CEST) Original-Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [213.186.38.137]) by ronja.ntg.nl (Postfix) with SMTP id A035F12793 for ; Wed, 3 May 2006 22:56:01 +0200 (CEST) Original-Received: (qmail 1742 invoked by uid 503); 3 May 2006 20:57:15 -0000 Original-Received: from b7.ovh.net (HELO mail147.ha.ovh.net) (213.186.33.57) by 27.mail-out.ovh.net with SMTP; 3 May 2006 20:57:15 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 3 May 2006 20:55:45 -0000 Original-Received: from mail147.ha.ovh.net (10.0.50.147) by mail147.ha.ovh.net with SMTP; 3 May 2006 20:55:43 -0000 Original-Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 3 May 2006 20:55:43 -0000 Original-Received: from d213-103-222-44.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@213.103.222.44) by ns0.ovh.net with SMTP; 3 May 2006 20:55:43 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: mailing list for ConTeXt users In-Reply-To: <44590A0D.9020302@wxs.nl> X-Ovh-Remote: 213.103.222.44 (d213-103-222-44.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|1.0|H 0.5 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27627 Archived-At: This is a multi-part message in MIME format. --===============1462599208== Content-Type: multipart/alternative; boundary="------------050002030608040102020007" This is a multi-part message in MIME format. --------------050002030608040102020007 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 =3D boxes.mp: clearboxes cl($); boxes.mp: & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=3Denddef;"= ; boxes.mp:extra_endfig :=3D 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 =E9crit : >Renaud AUBIN wrote: > =20 > >>>>clearboxes >>>> =20 >>>> >>! Isolated expression. >> =20 >> >can you grep your metapost tree for 'clearboxes'? where is it defined?=20 > >Hans=20 >=20 > >----------------------------------------------------------------- > 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 > > > =20 > --------------050002030608040102020007 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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


  

--------------050002030608040102020007-- --===============1462599208== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1462599208==--