ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Renaud AUBIN <aubin@nibua-r.org>
Subject: Re: ConTeXt + MetaUML
Date: Wed, 03 May 2006 22:55:54 +0200	[thread overview]
Message-ID: <445918DA.2080209@nibua-r.org> (raw)
In-Reply-To: <44590A0D.9020302@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2359 bytes --]


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
>
>
>  
>


[-- Attachment #1.2: Type: text/html, Size: 3715 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-05-03 20:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-02 14:55 Renaud AUBIN
2006-05-02 22:11 ` nico
2006-05-03 19:52 ` Hans Hagen
2006-05-03 20:55   ` Renaud AUBIN [this message]
2006-05-05 10:36     ` Hans Hagen
2006-05-06 10:33       ` Renaud AUBIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=445918DA.2080209@nibua-r.org \
    --to=aubin@nibua-r.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).