ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Shiv Shankar Dayal <shivshankar.dayal@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: installing metauml in context
Date: Sat, 15 May 2010 10:55:31 +0200	[thread overview]
Message-ID: <4BEE6183.1080506@wxs.nl> (raw)
In-Reply-To: <AANLkTimCx9bwBa5mUjyYZByvEagNZtz5S7awnwqffqPN@mail.gmail.com>

On 15-5-2010 5:08, Shiv Shankar Dayal 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.
>
> Sorry to bother you  people. It is a pain to waste time like this.
> Since metaobj works
> with context I will extend and use it to draw UML diagrams. I just
> thought that since
> it is mentioned as a package at contextgarden I was hoping that it
> will work out of the
> box.

\startMPinclusions
     string metauml_defaultFont            ; metauml_defaultFont 
     := "\truefontname{Serif}" ;
     string metauml_defaultFontOblique     ; metauml_defaultFontOblique 
     := "\truefontname{SerifItalic}" ;
     string metauml_defaultFontBold        ; metauml_defaultFontBold 
     := "\truefontname{SerifBold}" ;
     string metauml_defaultFontBoldOblique ; 
metauml_defaultFontBoldOblique := "\truefontname{SerifBoldItalic}" ;

     input metauml;
\stopMPinclusions

At least prevents the error but alignment is weird. Some pseudo 
typesetting is going on and the quality is suboptimal then (after all mp 
just pastes glyphs then). Take this:

Class.A ("Point") ("+x: int", "+y: int") ();

It's probably no big deal for the author to support pictures instead of 
strings

Class.A ("Point") (btex +x: int etex, "+y: int") ();

Class.A ("Point") (textext("+x: int"), "+y: int") ();

It's probabaly already possible somehow but i have no time to look into 
the code in detail now.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2010-05-15  8:55 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
2010-05-14 22:43       ` luigi scarso
2010-05-15  3:08     ` Shiv Shankar Dayal
2010-05-15  8:55       ` Hans Hagen [this message]
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=4BEE6183.1080506@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=shivshankar.dayal@gmail.com \
    /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).