From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76105 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: switching to a different math font (with alternatives) in the middle of document Date: Thu, 10 May 2012 11:01:57 +0200 Message-ID: <4FAB8405.9040002@wxs.nl> References: <4FAB7618.6070600@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336640541 12049 80.91.229.3 (10 May 2012 09:02:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 09:02:21 +0000 (UTC) Cc: mailing list for ConTeXt users To: Mojca Miklavec Original-X-From: ntg-context-bounces@ntg.nl Thu May 10 11:02:20 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSPGL-0001jN-GU for gctc-ntg-context-518@m.gmane.org; Thu, 10 May 2012 11:02:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BD82101EA; Thu, 10 May 2012 11:02:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EY8us9BTQKYn; Thu, 10 May 2012 11:02:13 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D895A101E3; Thu, 10 May 2012 11:02:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB2D9101E3 for ; Thu, 10 May 2012 11:02:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XUpfbEFcYj3U for ; Thu, 10 May 2012 11:02:11 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id B9D21101E2 for ; Thu, 10 May 2012 11:02:11 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4A926af001255 for ; Thu, 10 May 2012 11:02:09 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 614-1713362 for multiple; Thu, 10 May 2012 11:02:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QH8927SP - c527086cc8a8 - 20120510 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:76105 Archived-At: On 10-5-2012 10:25, Mojca Miklavec wrote: > On Thu, May 10, 2012 at 10:02 AM, Hans Hagen wrote: >> On 10-5-2012 02:25, Mojca Miklavec wrote: >>> >>> Hello, >>> >>> I'm just wonderding if there is a way to switch to an OpenType Math >>> font (referred to by name or filename, without any predefined >>> typescript) with some stylistic alternative in the middle of the >>> document, like in the LaTeX example: >> >> >> Sure, when Khaled added alternates to xits we also added support for it to >> mkiv. >> >> \setupbodyfont[xits] > > But this requires a whole typescript. So there is no way to say Why? It's a dynamic feature. It's just that we use nicer names than ss01 and such. > something equivalent to > \font\a=Asana-Math.otf \a > without the need to create a lfg file& so on? I'm not sure what you mean here. You can use \font directly but it has no benefits as it's not part of a proper math setup then. > Anyway, your example with Asana broke a compilation, so at least I was > able to realize that I was missing the otf font, whereas yesterday it > was simply ignoring the fact that the font was missing and has typeset > everything in TeX Gyre I think. I never used Asana. >> \starttext >> >> \unexpanded\def\mathaltcal{\mathalternate{cal}\cal} > > And how do I know what is an equivalent of StylisticSet=4 in Lucida? Well, that's just ss04 but referring to a stylistic set at the user level is a bad idea as that's not standardized > Would this be something like > italic = { feature = 'ss01', value = 1, comment = "Mathematical > Alternative Italic" }, Indeed. > where \mathalternate{italic} works as +ss01, but the ss04 not because > it has not been defined in lucida-opentype-math.lfg? Indeed, although of course I could make it honor the fuzzy ss01 etc variants too but no one can guarantee that these ss's always stay the same. In principle we can even define commands automatically if needed but then switching to a different font setup in a document can result in unknown commands. After all, there can be 10 different alternate scripts in one font and zero in another. >> $ABC$ >> $\cal ABC$ >> $\mathalternate{cal}\cal ABC$ >> $\mathaltcal ABC$ >> >> \stoptext Once the dust around math fonts has settled we might end up with some standardization in mkiv with respect to the tags used in the lfg files. 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 ___________________________________________________________________________________