From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27600 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt + MetaUML Date: Wed, 03 May 2006 00:11:19 +0200 Message-ID: References: <445772F1.5010605@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146607680 878 80.91.229.2 (2 May 2006 22:08:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 22:08:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 03 00:07:58 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 1Fb326-0002io-44 for gctc-ntg-context-518@m.gmane.org; Wed, 03 May 2006 00:07:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48DFF127B0; Wed, 3 May 2006 00:07:49 +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 08273-04; Wed, 3 May 2006 00:07:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7F79127A5; Wed, 3 May 2006 00:07:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F7DF127A5 for ; Wed, 3 May 2006 00:07:43 +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 08394-03 for ; Wed, 3 May 2006 00:07:42 +0200 (CEST) Original-Received: from swip.net (mailfe03.tele2.fr [212.247.154.76]) by ronja.ntg.nl (Postfix) with SMTP id 9B827127A2 for ; Wed, 3 May 2006 00:07:42 +0200 (CEST) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [83.177.220.104] (HELO localhost) by mailfe03.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 195272720 for ntg-context@ntg.nl; Wed, 03 May 2006 00:07:39 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: <445772F1.5010605@nibua-r.org> User-Agent: Opera M2/7.54 (FreeBSD, build 955) 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:27600 Archived-At: On Tue, 02 May 2006 16:55:45 +0200, Renaud AUBIN wrote: > 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: [...] > > 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 remember I had such troubles when including boxes. It makes a mess when included in a graphic. Inluding it via \startMPinclusions makes your example work. \starttext \startMPinclusions input metauml.mp; \stopMPinclusions \startuseMPgraphic{xx} Class.A("A")()(); drawObject(A); \stopuseMPgraphic \placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}} \stoptext Regards, BG