From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10064 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Using Fraktur (and Gothic and Calligraphic) fonts in ConTeXt Date: Sun, 08 Dec 2002 18:30:01 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20021208182415.0366cea0@remote-1> References: <124930209.20021207200712@iol.it> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1039381313 7733 80.91.224.249 (8 Dec 2002 21:01:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 8 Dec 2002 21:01:53 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18L8Yi-00020a-00 for ; Sun, 08 Dec 2002 22:01:52 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 73B6610AE9; Sun, 8 Dec 2002 22:01:59 +0100 (MET) Original-Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by ref.ntg.nl (Postfix) with ESMTP id 7780A10AE7 for ; Sun, 8 Dec 2002 21:59:18 +0100 (MET) Original-Received: from LAPTOP-3.wxs.nl ([213.75.95.123]) by smtp01.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id H6TJH600.JFV for ; Sun, 8 Dec 2002 21:55:54 +0100 X-Sender: hagen-mail@remote-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <124930209.20021207200712@iol.it> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10064 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10064 At 08:07 PM 12/7/2002 +0100, you wrote: >Hello, > >I just wanted to report the conclusions I reached after the >hoop-jumping I had to go through to be able to use Fraktur in >ConTeXt, especially in math environments: it seems that the \frak, >\goth, \cal font switches are ignored in math mode (which is >somewhat ridiculous, considering that this is where they are used >more often). > >A workaround (stolen from the old math module) is to define > >\def\fraktur #1{\ifmmode\@EA\text\fi{{\frak#1}}} >\def\gothic #1{\ifmmode\@EA\text\fi{{\goth#1}}} >\def\caligraphic#1{\ifmmode\@EA\text\fi{{\cal #1}}} > >and use \fraktur{a} instead of {\frak a}. This has the >disadvantage that you cannot set Fraktur as the (math) font for a >complex math construct. Can this be fixed, please? The reason for the default definitions not working as expected lays in the fact that they are defined as fall backs. Only \blackboard is mapped onto a math family (practical reason: i never used the other ones). When uses with a family, they adapt to the math script sizes. The problem here is that it can only work as a \switch if there is a math family associated, and (1) there are not enough of them for each funny font, and (2) one has to keep track of them in different fonts. I've now changed the defs to kind of always expect text fonts being used, in which case your def is ok. (because i want consistency in this, i also changed the blackboard def, and expect future defs to act the same, else there is no way to keep track of such things (apart from debugging); some time a go blackboard alone already took me hours to uncover -) In the process of cleaning up m-math and moving things to the kernel and/or m-newmat, i had a text macro there; i moved a version to the kernel. For low level macros, use \mathtext instead, since one never knows if \text is overloaded). Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------