From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: installing metauml in context
Date: Sat, 15 May 2010 00:40:09 +0200 [thread overview]
Message-ID: <AANLkTikIU4qnriwdYAaB1MWyRF8OW5r2GZrLcjKNXpg2@mail.gmail.com> (raw)
In-Reply-To: <AANLkTil5odmMnIg6qMu0fEMxckzdd28LQaSwG68AF8kL@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3006 bytes --]
On Sat, May 15, 2010 at 12:04 AM, Shiv Shankar Dayal
<shivshankar.dayal@gmail.com> 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.
>
> Best regards,
> Shiv Shankar Dayal
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / 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
> ___________________________________________________________________________________
>
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
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 55146 bytes --]
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-05-14 22:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-14 21:43 Shiv Shankar Dayal
2010-05-14 21:57 ` Hans Hagen
2010-05-14 22:04 ` Shiv Shankar Dayal
2010-05-14 22:40 ` luigi scarso [this message]
2010-05-14 22:43 ` luigi scarso
2010-05-15 3:08 ` Shiv Shankar Dayal
2010-05-15 8:55 ` Hans Hagen
2010-05-17 18:49 ` Shiv Shankar Dayal
2010-05-17 21:12 ` Hans Hagen
2010-07-09 18:39 ` Kevin D. Robbins
2010-05-15 6:31 ` Taco Hoekwater
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=AANLkTikIU4qnriwdYAaB1MWyRF8OW5r2GZrLcjKNXpg2@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--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).