From: nico <nicolas.marsgui@libertysurf.fr>
Subject: Re: ConTeXt + MetaUML
Date: Wed, 03 May 2006 00:11:19 +0200 [thread overview]
Message-ID: <ops8x2k5py9niby6@localhost> (raw)
In-Reply-To: <445772F1.5010605@nibua-r.org>
On Tue, 02 May 2006 16:55:45 +0200, Renaud AUBIN <aubin@nibua-r.org> 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
next prev parent reply other threads:[~2006-05-02 22:11 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 [this message]
2006-05-03 19:52 ` Hans Hagen
2006-05-03 20:55 ` Renaud AUBIN
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=ops8x2k5py9niby6@localhost \
--to=nicolas.marsgui@libertysurf.fr \
--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).