(repost)
On Sat, May 15, 2010 at 12:04 AM, Shiv Shankar Dayal
<[email protected]> wrote:
> Hi,
>
>>> I am running ConTeXt mark IV. I need to use metauml for my work.
>>> However, I could not get it installed. Please help. The install file
>>> which comes with it does not work for context.
>>
>> more info needed .. test file and so
>>
>> Hans
>
> Sorry about this. Following is from a file for which I took the code from
> mailing list itself.
>
> \chapter{Diameter Finite State Machine}
> The state machine of the diameter base protocol implementation will observer
> following state machine.
> \startMPinclusions
> input metauml;
> \stopMPinclusions
> \startuseMPgraphic{xx}
>
> save A;
> save B;
> 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][fig:xx]{xx}{\useMPgraphic{xx}}
>
> This is included in starttext block.
>
> For verbosity I am also giving you some errors.
>
> Isolated expression.
> <to be read again>
> (
> <*> save A; save B; Class.A(
> "Point") ("+x: int", "+y: int") (); Class.B("Ci...
>
> ! Extra tokens will be flushed.
> <to be read again>
> (
> <*> save A; save B; Class.A(
> "Point") ("+x: int", "+y: int") (); Class.B("Ci...
>
>>> Class.B
> ! Isolated expression.
No problem here with mkii and texlive 2009
and export shell_escape=t;
my test.tex is in the same folder of metauml
%%
%%test.tex
\setupcolors[state=start]
\startMPinclusions
input metauml;
\stopMPinclusions
\starttext
\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startuseMPgraphic{xx}
save A;
save B;
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][fig:xx]{xx}{\useMPgraphic{xx}}
\stoptext
--
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________