From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64345 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: \definefontalternative breaks font switches in math Date: Wed, 08 Dec 2010 09:18:38 +0100 Message-ID: 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: dough.gmane.org 1291796350 334 80.91.229.12 (8 Dec 2010 08:19:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 08:19:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 08 09:19: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 1PQFEv-0001oM-Nf for gctc-ntg-context-518@m.gmane.org; Wed, 08 Dec 2010 09:19:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7EBE1CA8F5; Wed, 8 Dec 2010 09:19:01 +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 36M1q9uqMhwy; Wed, 8 Dec 2010 09:18:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A2FECA8F6; Wed, 8 Dec 2010 09:18:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4543FCA8F6 for ; Wed, 8 Dec 2010 09:18:52 +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 lEiWJ9YfCVLV for ; Wed, 8 Dec 2010 09:18:48 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 17740CA8F5 for ; Wed, 8 Dec 2010 09:18:48 +0100 (CET) Original-Received: from mails3.awi.de (mails3.AWI.DE [134.1.2.14]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oB88IkWE026207 for ; Wed, 8 Dec 2010 09:18:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id 2A39AD1E1B for ; Wed, 8 Dec 2010 09:18:44 +0100 (MET) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id y-LPMyX1jdAK for ; Wed, 8 Dec 2010 09:18:38 +0100 (MET) Original-Received: from msg.awi.de (msg.AWI.DE [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 434BED1DFC for ; Wed, 8 Dec 2010 09:18:38 +0100 (MET) Original-Received: from vpn-awinet-16-3.awi.de ([unknown] [172.28.16.3]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LD300E54OF2BQ40@msg.awi.de> for ntg-context@ntg.nl; Wed, 08 Dec 2010 09:18:38 +0100 (MET) X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0228 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03DEwiLi8 - 97877c6ad650 - 20101208 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:64345 Archived-At: Dear typescript experts, in an earlier Email I reported, that the font switches did not work in math mode. E.g., $\bf a=\alpha$ $\bi a=\alpha$ did not display bold math. It turned out that this happens when I invoke \definefontalternative. Normaly \bf is defined like this: *\show\bf > \bf=\protected macro: ->\ifmmode \mathbf \else \normalbf \fi . <*> \show\bf After using \definefontalternative it looks different: *\show\bf > \bf=\protected macro: ->\setcurrentfontalternative {bf}. <*> \show\bf Minimal example: % \definefontalternative [sb] % <-- uncomment me to break bold math \starttext $\bf 3x^2+7x$ \stoptext How to avoid this? Thanks for advice, Florian ___________________________________________________________________________________ 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 ___________________________________________________________________________________