ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt + MetaUML
@ 2006-05-02 14:55 Renaud AUBIN
  2006-05-02 22:11 ` nico
  2006-05-03 19:52 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Renaud AUBIN @ 2006-05-02 14:55 UTC (permalink / raw)



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


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





[-- Attachment #1.2: Type: text/html, Size: 2384 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-06 10:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 14:55 ConTeXt + MetaUML Renaud AUBIN
2006-05-02 22:11 ` nico
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

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