From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48666 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: math problems in last beta (cont-en and cont-xp) Date: Mon, 23 Mar 2009 10:41:23 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1078759697-1237819256=:11835" X-Trace: ger.gmane.org 1237819394 26581 80.91.229.12 (23 Mar 2009 14:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2009 14:43:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 23 15:44:31 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LllO8-0002dh-Bt for gctc-ntg-context-518@m.gmane.org; Mon, 23 Mar 2009 15:44:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CED061FE12; Mon, 23 Mar 2009 15:42:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05641-06; Mon, 23 Mar 2009 15:42:18 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1AA61FE01; Mon, 23 Mar 2009 15:42:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 534D81FE01 for ; Mon, 23 Mar 2009 15:42:14 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08986-03 for ; Mon, 23 Mar 2009 15:42:04 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 09E821FE00 for ; Mon, 23 Mar 2009 15:42:04 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2NEg2rd024706 for ; Mon, 23 Mar 2009 15:42:03 +0100 Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY tombraider.mr.itd.umich.edu ID 49C79FB8.8E25A.15645 ; 23 Mar 2009 10:42:00 -0400 In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) Content-ID: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.161; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 197660955 - 8a5837358db1 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48666 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1078759697-1237819256=:11835 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-7; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Mon, 23 Mar 2009, Lutz Haseloff wrote: > Hi Hans, hi Taco, hi all, > > testing math with the latest ConTeXt beta i found some problems. > My test file is: > > \usetypescriptfile[type-buy] > \def\currentfontname > {\ctxlua{tex.print(font.getfont(font.current()).fullname)}} > \starttext > \startbuffer[mathbuffer] > \currentfontname > > $a^2 + b^2 =3D c^2$ > > $E =3D mc^2 \bigotimes \sum$ > > $=E1^2 + =E2^2 =3D =E3^2$ > \blank[big] > \stopbuffer > \getbuffer[mathbuffer] > \usetypescript[lucida][texnansi] > \setupbodyfont[lucida] > \getbuffer[mathbuffer] > \usetypescript[cambria] > \switchtotypeface[cambria] > \getbuffer[mathbuffer] > \usetypescript[palatino] > \switchtotypeface[palatino] > \getbuffer[mathbuffer] > \stoptext For using old type-1 math fonts, you need to create virtual fonts. > Latin Modern and Palatino/px work very fine. For LM, Palatino, and Times, the virtual fonts are created in math-vfu.lua > Lucida lacks greek and some operators. I found no embedded LucidaNewMath > fonts > in the resulting pdf. There are no virtual fonts for Lucida math. In principle, one just needs=20 to translate math-lbr to lua syntax. I will try to do that, but I need=20 someone to test the results, since I do not have Lucida fonts myself. > Cambria has a very ugly spacing. Luatex does not do kerning for utf math right now. This will be handled=20 correcrly in the future. > btw. in the wiki is described a ConTeXt command \showmathcharacters. > This seems not to work anymore. The related file math-run.tex is not > input at the time of format generation. \ShowCompleteFont{name:Cambria-Math}{10pt}{1} > P.S. will the key [texnansi] (or [ec]) remain necessary to switch to > LucidaBright? For text fonts, yes. Normally math fonts use an independent encoding. Aditya --8323328-1078759697-1237819256=:11835 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-1078759697-1237819256=:11835--