From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58879 Path: news.gmane.org!not-for-mail From: Shiv Shankar Dayal Newsgroups: gmane.comp.tex.context Subject: Re: installing metauml in context Date: Tue, 18 May 2010 00:19:29 +0530 Message-ID: References: <4BEDC747.4010906@wxs.nl> <4BEE6183.1080506@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274122534 8585 80.91.229.12 (17 May 2010 18:55:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 18:55:34 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon May 17 20:55:28 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OE5TK-0003Jo-Or for gctc-ntg-context-518@m.gmane.org; Mon, 17 May 2010 20:55:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 61CFBC9A41; Mon, 17 May 2010 20:55:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lCyS2hmKy2FG; Mon, 17 May 2010 20:55:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91343C9A63; Mon, 17 May 2010 20:55:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E314C9A63 for ; Mon, 17 May 2010 20:55:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I5hpzyMgvgaF for ; Mon, 17 May 2010 20:55:12 +0200 (CEST) Original-Received: from mail-pv0-f169.google.com (mail-pv0-f169.google.com [74.125.83.169]) by balder.ntg.nl (Postfix) with ESMTP id D9FE0C9A41 for ; Mon, 17 May 2010 20:55:11 +0200 (CEST) Original-Received: by pvg12 with SMTP id 12so1225136pvg.14 for ; Mon, 17 May 2010 11:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=K1ghj+TscW1OVZ2uZfNFvBRdA93o+thklgyRoaKvrgc=; b=Rno16gCH2OGHdBUMH8bS2yeEpj22zvlyyPY6aelsKRfuz16mGM/K8pHxwTIBzlQ87b h2btGSaQIUxkUJC3nNnPPZpoRO5DMbSsvBTKh/wIauJu+qcpx4HPQ/tzsdEdpeQ4rSWH ZTr9mtBfcPF6cIpwMe8BD0i8iyBzWYXQ1X9dc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=d0T/8wzikWjfLEhbR/8txXS8VhPxYuDnc7JfIpdhNSPdycpysy0FuPPEbyw+jslUZn wPaLRUb/VBryoCy4xAO+2ug00gdk2bHXTGI2QQ77+tIn2NBsQnKNNulhocWRlV9CW9in Tr37pkBmpqsS73DB+ohiU7tQLa70J2YJJ/VbE= Original-Received: by 10.141.106.11 with SMTP id i11mr3995441rvm.242.1274122169636; Mon, 17 May 2010 11:49:29 -0700 (PDT) Original-Received: by 10.140.142.15 with HTTP; Mon, 17 May 2010 11:49:29 -0700 (PDT) In-Reply-To: <4BEE6183.1080506@wxs.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:58879 Archived-At: Hi all, Thanks a lot for this help. I tried again with modifications and it is work= ing 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 > =A0 =A0string metauml_defaultFont =A0 =A0 =A0 =A0 =A0 =A0; metauml_defaul= tFont =A0 =A0 :=3D > "\truefontname{Serif}" ; > =A0 =A0string metauml_defaultFontOblique =A0 =A0 ; metauml_defaultFontObl= ique =A0 =A0 :=3D > "\truefontname{SerifItalic}" ; > =A0 =A0string metauml_defaultFontBold =A0 =A0 =A0 =A0; metauml_defaultFon= tBold =A0 =A0 :=3D > "\truefontname{SerifBold}" ; > =A0 =A0string metauml_defaultFontBoldOblique ; metauml_defaultFontBoldObl= ique :=3D > "\truefontname{SerifBoldItalic}" ; > > =A0 =A0input metauml; > \stopMPinclusions > > At least prevents the error but alignment is weird. Some pseudo typesetti= ng > 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 t= he > code in detail now. > > Hans > > ----------------------------------------------------------------- > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0Hans Hagen | PRAGMA ADE > =A0 =A0 =A0 =A0 =A0 =A0 =A0Ridderstraat 27 | 8061 GH Hasselt | The Nether= lands > =A0 =A0tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 | www.pragma-pod.nl > ----------------------------------------------------------------- > -- = Best regards, Shiv Shankar Dayal ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________