From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27653 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt + MetaUML Date: Fri, 05 May 2006 12:36:18 +0200 Message-ID: <445B2AA2.2040703@wxs.nl> References: <445772F1.5010605@nibua-r.org> <44590A0D.9020302@wxs.nl> <445918DA.2080209@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 1146825391 21338 80.91.229.2 (5 May 2006 10:36:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 10:36:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri May 05 12:36:29 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 1Fbxfe-0004KH-97 for gctc-ntg-context-518@m.gmane.org; Fri, 05 May 2006 12:36:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A202127C7; Fri, 5 May 2006 12:36:26 +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 18803-02; Fri, 5 May 2006 12:36:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 864EA127BF; Fri, 5 May 2006 12:36:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8133C127BF for ; Fri, 5 May 2006 12:36:19 +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 15002-05 for ; Fri, 5 May 2006 12:36:17 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id AAE13127BE for ; Fri, 5 May 2006 12:36:17 +0200 (CEST) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 15409 for ; Fri, 05 May 2006 14:36:17 +0400 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: mailing list for ConTeXt users In-Reply-To: <445918DA.2080209@nibua-r.org> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:27653 Archived-At: Renaud AUBIN wrote: > > Hi Hans, > > The example with clearboxes's crash: this is probably due to the fact that clearboxes hooks into endfig \setupoutput[pdftex] \starttext \startMPinclusions input boxes; \stopMPinclusions \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 this only works when in boxes.mp, we have: extra_beginfig := extra_beginfig & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=enddef;"; extra_endfig := extra_endfig & " clearboxes"; (space added before clearboxes in string) (maybe i should clean up boxes.mp and preload that in metafun if only i know what it's meant for) i suggest that you contact the author of metauml: - rename the util_* files into metauml_util_* in order to prevent clashes with other util_* files - load all files into the main file, so that you get rid of the redundant file reads (loading quits when the files are already loaded,but best do some testing before they are input) - provide a metauml_preload.mp file that preloads e.g. boxes.mp so that you can do \startMPinclusions input metauml_preload; \stopMPinclusions \startuseMPgraphic{my_uml_figure} input metauml; \stopuseMPgraphic - provide "load_metauml" that loads once only, so that you can do \startMPinclusions input metauml_preload; \stopMPinclusions \startuseMPgraphic{my_uml_figure} load_metauml; \stopuseMPgraphic \startuseMPgraphic{my_second_uml_figure} load_metauml; \stopuseMPgraphic and get only one load when you collect graphics instead of runtime processing 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 -----------------------------------------------------------------