From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56339 Path: news.gmane.org!not-for-mail From: Mikael Persson Newsgroups: gmane.comp.tex.context Subject: Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) Date: Wed, 17 Feb 2010 22:10:52 +0100 Message-ID: References: <6faad9f01002141424i18327f0ahb2ee7f8ae2993c50@mail.gmail.com> <6faad9f01002141426l3527e922y3ba711881cf55c93@mail.gmail.com> <4B7A903E.2070409@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1266441069 3368 80.91.229.12 (17 Feb 2010 21:11:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2010 21:11:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 17 22:11:06 2010 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 1NhrAl-00033Z-F0 for gctc-ntg-context-518@m.gmane.org; Wed, 17 Feb 2010 22:11:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3B40C9D1E; Wed, 17 Feb 2010 22:11:02 +0100 (CET) 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 INaOeqJOlGe9; Wed, 17 Feb 2010 22:10:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D3FBC9D01; Wed, 17 Feb 2010 22:10:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E9EFC9D01 for ; Wed, 17 Feb 2010 22:10:58 +0100 (CET) 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 72LrhQYf1o4T for ; Wed, 17 Feb 2010 22:10:54 +0100 (CET) Original-Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.191]) by balder.ntg.nl (Postfix) with ESMTP id DF43EC9CFD for ; Wed, 17 Feb 2010 22:10:53 +0100 (CET) Original-Received: by gv-out-0910.google.com with SMTP id p33so144408gvf.1 for ; Wed, 17 Feb 2010 13:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=W1ZN76joBMoL6NKe6utSQNaIHK03oNbYBfmKIvaTcGs=; b=GoYz330ARr6kGJ+9GqRF88cVGgCpcm+UU3ZZ2BJZL0DuSTwPPekPcfQ9uziwd5nROc aKmFXLxHbAoGBTvf4z5sdRNcQSYv6r2IpUPiCuLHWqIfj8yQfbiJx9gN25Otk8f4jzjL 6rjNjfXk0Z2arJIUmYKJdCgR6mIrp2AxFP9YI= 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 :content-type; b=buoOn7+RNZfiGSRMGEFK9O/eEu2XuFI4nl+A5iv0jYSMmT2ONXNYx61zGfDvaKJn9j 68Dn5kEW2MtEnOWaCjaXX+nTNBx9Cac89kGXkdPF47FXrFVstuwpvjso4KR+zwXFKYl7 ar42R+wzDJoYH1/PR04bNcv9yavKOX+lQSQYA= Original-Received: by 10.204.174.201 with SMTP id u9mr5565149bkz.204.1266441052354; Wed, 17 Feb 2010 13:10:52 -0800 (PST) In-Reply-To: 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:56339 Archived-At: On Tue, Feb 16, 2010 at 1:42 PM, Mikael Persson wrote: > On Tue, Feb 16, 2010 at 1:31 PM, Hans Hagen wrote: >> On 16-2-2010 11:38, Mikael Persson wrote: >>> >>> Thank you Mojca and Aditya for your answers, >>> >>> I hope the mathdesign part of mtx-update.lua will end up in the >>> orignal file. I do not know how to use it now. >>> >>> If I save this file and update with "sh firstsetup.sh --extras=all" >>> (or --extras=mathdesign) it seems that the mtx-update.lua is >>> overwritten with the version from the server. I do not know howto >>> upgrade with mtx-update.lua without firstsetup.sh. >>> >>> About the fourier fonts. Is there a lot of work to do in math-vfu.lua >>> to get it to work? I looked into that file, but it was a bit hard to >>> understand what is needed... >>> >>> Maybe it is hard work to get the fonts working, but I really think >>> that if we have several text+math fonts easily available in the >>> minimals that will make (new) users very happy. >> >> it depends ... if the font is in tex default encoding then it's only a >> matter of adding a small table > > I'm not 100% sure how it works wth font encodings, but the fourier doc > (http://mirror.ctan.org/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf) > says that the fonts are _fully_ T1 encoded. > > Mikael > > PS: Hans, do you have any comments about the mathdesign patch > suggested by Mojca above? I have now manually downloaded the mathdesign fonts (and the charter fonts, not available on the server it seems) The fonts gets used, but I get upright math letters instead of italic ones. My test file is given by \definetypeface[charter][rm][serif][charter] [default] \definetypeface[charter][mm][math] [charter] [default] \setupbodyfont[charter,10pt] \starttext We define, for real $x$, the absolute value of $x$ as \startformula |x|= \startcases \NC \hphantom{-}x \MC x\geq 0,\NR \NC -x \MC x<0.\NR \stopcases \stopformula Also let $\alpha$, $\beta$ and $\Gamma$ be\dots \stoptext The output can be found at http://home.imf.au.dk/mickep/mdesign.pdf Typesetting a similar document with LaTeX I get italic math (note also that the \Gamma is upright, I guess that this is an option that is turned on by default by LaTeX) http://home.imf.au.dk/mickep/lmdesign.pdf I guess this has something to do with the following lines in math-vfu.lua mathematics.make_font ( "charter-math", { { name = "file:bchr8a", features = "virtualmath", main = true }, -- { name = "md-chr7m.tfm", vector = "tex-mr" }, { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = true }, { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, { name = "msam10.tfm", vector = "tex-ma" }, { name = "msbm10.tfm", vector = "tex-mb" }, } ) However, I am not able guess what to change (I tried different things available in mdbch.map). Any help is appreciated. Mikael ___________________________________________________________________________________ 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 ___________________________________________________________________________________