From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26001 Path: news.gmane.org!not-for-mail From: Adam Lindsay Newsgroups: gmane.comp.tex.context Subject: Re: How to \bf for math? Date: Thu, 16 Feb 2006 20:20:05 +0000 Message-ID: <43F4DE75.4040209@comp.lancs.ac.uk> References: <6faad9f00601150307k69d8a10er89fe149ee8f724ab@mail.gmail.com> <1B2F871A-AFE0-42CF-A17D-1C29D7F0966C@fiee.net> <6faad9f00601150659y7528773du9423ccf07d066bd0@mail.gmail.com> <43CA9061.2040002@wxs.nl> <43CB7E1E.2080602@elvenkind.com> <6faad9f00601160908k6e940d9fk58b57cfa1de68839@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140121354 23142 80.91.229.2 (16 Feb 2006 20:22:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2006 20:22:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 16 21:22:30 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1F9pdl-00043y-6x for gctc-ntg-context-518@m.gmane.org; Thu, 16 Feb 2006 21:22:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A55931276B; Thu, 16 Feb 2006 21:22:12 +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 10762-03; Thu, 16 Feb 2006 21:22:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4F9181278D; Thu, 16 Feb 2006 21:19:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9AF761278D for ; Thu, 16 Feb 2006 21:19:49 +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 10762-02-2 for ; Thu, 16 Feb 2006 21:19:48 +0100 (CET) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with SMTP id 5D26C1276B for ; Thu, 16 Feb 2006 21:19:48 +0100 (CET) Original-Received: from [192.168.31.101] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id k1GKJlpG002909 for ; Thu, 16 Feb 2006 20:19:48 GMT User-Agent: Thunderbird 1.5 (Macintosh/20051201) Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f00601160908k6e940d9fk58b57cfa1de68839@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26001 Archived-At: Mojca Miklavec wrote: > Taco, thanks for the answer. I managed to change the whole math family > into bold, but I can't get the following example working: > > \switchtobodyfont[iwona-light,ss] > $$normal {\bf bold}{\bfm bold}{\bfmath bold}$$ > > \bf and \bfmath result in cm fonts, \bfm has no influence, no matter > what I tried to do. I grep-ed for bfmath and boldmath and tried to > replace them, but no success at all. See the attached file for my > attempts. Okay, thanks to some off-list prodding, I took a look. Mojca, you weren't too far off. Simply following the recipe for lucida got me most of the way there, but the normal letters didn't get inflected (bold-ed). When I explicitly defined the alphabet, then the rest of the problems I saw got solved. Try this out with a lot more test cases, and report back. If it's okay, then it should be easy to formalise it into a robust, more complete set of typescripts... \startmathcollection[default] %eventual patch for math-tex? \definemathcharacter [a] [nothing] [mi] ["61] \definemathcharacter [b] [nothing] [mi] ["62] \definemathcharacter [c] [nothing] [mi] ["63] \definemathcharacter [d] [nothing] [mi] ["64] \definemathcharacter [e] [nothing] [mi] ["65] \definemathcharacter [f] [nothing] [mi] ["66] \definemathcharacter [g] [nothing] [mi] ["67] \definemathcharacter [h] [nothing] [mi] ["68] \definemathcharacter [i] [nothing] [mi] ["69] \definemathcharacter [j] [nothing] [mi] ["6A] \definemathcharacter [k] [nothing] [mi] ["6B] \definemathcharacter [l] [nothing] [mi] ["6C] \definemathcharacter [m] [nothing] [mi] ["6D] \definemathcharacter [n] [nothing] [mi] ["6E] \definemathcharacter [o] [nothing] [mi] ["6F] \definemathcharacter [p] [nothing] [mi] ["70] \definemathcharacter [q] [nothing] [mi] ["71] \definemathcharacter [r] [nothing] [mi] ["72] \definemathcharacter [s] [nothing] [mi] ["73] \definemathcharacter [t] [nothing] [mi] ["74] \definemathcharacter [u] [nothing] [mi] ["75] \definemathcharacter [v] [nothing] [mi] ["76] \definemathcharacter [w] [nothing] [mi] ["77] \definemathcharacter [x] [nothing] [mi] ["78] \definemathcharacter [y] [nothing] [mi] ["79] \definemathcharacter [z] [nothing] [mi] ["7A] \definemathcharacter [A] [nothing] [mi] ["41] \definemathcharacter [B] [nothing] [mi] ["42] \definemathcharacter [C] [nothing] [mi] ["43] \definemathcharacter [D] [nothing] [mi] ["44] \definemathcharacter [E] [nothing] [mi] ["45] \definemathcharacter [F] [nothing] [mi] ["46] \definemathcharacter [G] [nothing] [mi] ["47] \definemathcharacter [H] [nothing] [mi] ["48] \definemathcharacter [I] [nothing] [mi] ["49] \definemathcharacter [J] [nothing] [mi] ["4A] \definemathcharacter [K] [nothing] [mi] ["4B] \definemathcharacter [L] [nothing] [mi] ["4C] \definemathcharacter [M] [nothing] [mi] ["4D] \definemathcharacter [N] [nothing] [mi] ["4E] \definemathcharacter [O] [nothing] [mi] ["4F] \definemathcharacter [P] [nothing] [mi] ["50] \definemathcharacter [Q] [nothing] [mi] ["51] \definemathcharacter [R] [nothing] [mi] ["52] \definemathcharacter [S] [nothing] [mi] ["53] \definemathcharacter [T] [nothing] [mi] ["54] \definemathcharacter [U] [nothing] [mi] ["55] \definemathcharacter [V] [nothing] [mi] ["56] \definemathcharacter [W] [nothing] [mi] ["57] \definemathcharacter [X] [nothing] [mi] ["58] \definemathcharacter [Y] [nothing] [mi] ["59] \definemathcharacter [Z] [nothing] [mi] ["5A] \stopmathcollection \starttypescript [bfmath,boldmath] [iwona] [ec,texnansi] % we want this in iwona namespace \definefontsynonym [Iwona-Math-Letters-Heavy] [rm-iwonah] \definefontsynonym [Iwona-Math-Letters-HeavyItalic] [mi-iwonahi] \definefontsynonym [Iwona-Math-Symbols-Heavy] [sy-iwonahz] \definefontsynonym [Iwona-Math-Extension-Heavy] [ex-iwonah] \stoptypescript \starttypescript [boldmath] [iwona] [name] % we don't use this yet \definefontsynonym [MathRoman] [Iwona-Math-Letters-Heavy] \definefontsynonym [MathItalic] [Iwona-Math-Letters-HeavyItalic] \definefontsynonym [MathSymbol] [Iwona-Math-Symbols-Heavy] \definefontsynonym [MathExtension] [Iwona-Math-Extension-Heavy] \stoptypescript \starttypescript [bfmath] [iwona] [name] % key typescript, with MathRomanBold et al \definefontsynonym [MathRomanBold] [Iwona-Math-Letters-Heavy] \definefontsynonym [MathItalicBold] [Iwona-Math-Letters-HeavyItalic] \definefontsynonym [MathSymbolBold] [Iwona-Math-Symbols-Heavy] \definefontsynonym [MathExtensionBold] [Iwona-Math-Extension-Heavy] \stoptypescript \setupformulas [method=bold] % magical incantation \usetypescript [iwona] [texnansi] % defined in type-exa \definetypeface [iwona] [mm] [bfmath] [iwona] [default] % add to the loaded typeface \setupbodyfont[iwona] % and go \starttext \startformula n({\bfm a} + {\bfm b}) = {\bfm \Gamma} \stopformula \startformula 1 \theta \Gamma = {\bfm 1 \beta \Gamma \alpha ' xP} x \stopformula \startformula 1 \theta \Gamma = {1 \beta \Gamma \alpha ' x} x \stopformula \stoptext [apologies for the length, you digest readers...] -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-