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

Hi all,

Thanks a lot for this help. I tried again with modifications and it is working
with wrong alignment. I am tried using simplefonts like

\usemodule[simplefonts,vim,mathml]
\setmainfont[LucidaStd]
\setmonofont[CourierNew]

If I add the above code then it overrides Hanss' suggestion but still
the alignment
is wrong. I am going to try more fonts to get the alignment right.

> \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
> -----------------------------------------------------------------
>



-- 
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
___________________________________________________________________________________


  reply	other threads:[~2010-05-17 18:49 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
2010-05-17 18:49         ` Shiv Shankar Dayal [this message]
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=AANLkTinuJLwEtAkgGjRA5dLJqubIS0gHeRoasJIBNBiJ@mail.gmail.com \
    --to=shivshankar.dayal@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).