From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27599 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: ConTeXt + MetaUML Date: Tue, 02 May 2006 16:55:45 +0200 Message-ID: <445772F1.5010605@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1433996948==" X-Trace: sea.gmane.org 1146605962 26158 80.91.229.2 (2 May 2006 21:39:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 21:39:22 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue May 02 23:39:20 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 1Fb2aM-0005Fg-Fb for gctc-ntg-context-518@m.gmane.org; Tue, 02 May 2006 23:39:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF40F127AA; Tue, 2 May 2006 23:39:08 +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 23468-07; Tue, 2 May 2006 23:39:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 06E48127A2; Tue, 2 May 2006 23:39:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B09AF127A2 for ; Tue, 2 May 2006 23:39:00 +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 21247-07 for ; Tue, 2 May 2006 23:38:58 +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 7AB1C1277F for ; Tue, 2 May 2006 23:38:58 +0200 (CEST) Original-Received: (qmail 6959 invoked by uid 503); 2 May 2006 21:40:12 -0000 Original-Received: from b7.ovh.net (HELO mail140.ha.ovh.net) (213.186.33.57) by 27.mail-out.ovh.net with SMTP; 2 May 2006 21:40:12 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 2 May 2006 21:38:57 -0000 Original-Received: from mail140.ha.ovh.net (10.0.50.140) by mail140.ha.ovh.net with SMTP; 2 May 2006 21:38:48 -0000 Original-Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 2 May 2006 14:55:54 -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; 2 May 2006 14:55:54 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: ConTeXt Mailing List 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.500001 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:27599 Archived-At: This is a multi-part message in MIME format. --===============1433996948== Content-Type: multipart/alternative; boundary="------------000300030808030807070306" This is a multi-part message in MIME format. --------------000300030808030807070306 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, Some times ago, I have discovered MetaUML via the MetaPost ML. As a consequence, I have tried to use it with ConTeXt... Here is the result: Considering a VERY simple example: \starttext \startuseMPgraphic{xx} input metauml; Class.A("A")()(); drawObject(A); \stopuseMPgraphic \placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}} \stoptext The compilation failed with: >> clearboxes ! Isolated expression. ; ...nsidefigure := false ; clearboxes; ; endfig->scantokens.extra_endfig; shipit;endgroup l.125 endfig ; Apparently, MetaUML is based on boxes.mp (temp-mpgraph.mp (/usr/share/texmf-tetex/metapost/metauml/metauml.mp HERE ====> (/usr/share/texmf-tetex/metapost/base/boxes.mp) (/usr/share/texmf-tetex/metapost/metauml/util_infrastructure.mp (/usr/share/texmf-tetex/metapost/metauml/util_log.mp)) .... .... It have already tried to use boxes.mp in ConTeXt in the past, but switched for metaobj because: 1. metaobj is more suitable to my needs 2. boxes.mp causes troubles when used with ConTeXT I'll keep searching a solution but if one of yours has already dealt with this kind of problems and succeeded in using boxes or, best, MetaUML... (I have to precise that I don't want to include a ps or pdf file generated by metapost only. I would embed the code in my document) Cheers, Renaud --------------000300030808030807070306 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi all,

Some times ago, I have discovered MetaUML via the MetaPost ML. As  a consequence, I have tried to use it with ConTeXt... Here is the result:

Considering a VERY simple example:

\starttext
\startuseMPgraphic{xx}
input metauml;
Class.A("A")()();
drawObject(A);
\stopuseMPgraphic

\placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}
\stoptext

The compilation failed with:

>> clearboxes
! Isolated expression.
<to be read again>
                   ;
<scantokens> ...nsidefigure := false ; clearboxes;

<to be read again>
                   ;
endfig->scantokens.extra_endfig;
                                shipit;endgroup
l.125 endfig
            ;

Apparently, MetaUML is based on boxes.mp

(temp-mpgraph.mp (/usr/share/texmf-tetex/metapost/metauml/metauml.mp
HERE ====> (/usr/share/texmf-tetex/metapost/base/boxes.mp)
(/usr/share/texmf-tetex/metapost/metauml/util_infrastructure.mp
(/usr/share/texmf-tetex/metapost/metauml/util_log.mp))
....
....

It have already tried to use boxes.mp in ConTeXt in the past, but switched for metaobj because:
1. metaobj is more suitable to my needs
2. boxes.mp causes troubles when used with ConTeXT

I'll keep searching a solution but if one of yours has already dealt with this kind of problems and succeeded in using boxes or, best, MetaUML...

(I have to precise that I don't want to include a ps or pdf file generated by metapost only. I would embed the code in my document)

Cheers,

Renaud




--------------000300030808030807070306-- --===============1433996948== 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 --===============1433996948==--