From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24087 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: cal & calligraphic Date: Sun, 04 Dec 2005 11:53:38 +0100 Message-ID: <4392CAB2.9080500@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133693767 2503 80.91.229.2 (4 Dec 2005 10:56:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Dec 2005 10:56:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 04 11:56:06 2005 Return-path: 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 1EirWG-00055E-RC for gctc-ntg-context-518@m.gmane.org; Sun, 04 Dec 2005 11:55:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 901CE127BF; Sun, 4 Dec 2005 11:55:00 +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 25802-05-4; Sun, 4 Dec 2005 11:54:56 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EB83D127C1; Sun, 4 Dec 2005 11:54:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 651DA127C1 for ; Sun, 4 Dec 2005 11:54:55 +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 25802-05-3 for ; Sun, 4 Dec 2005 11:54:54 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id 6FEC4127BF for ; Sun, 4 Dec 2005 11:54:54 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:59880 helo=[192.168.1.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1EirWA-000CCa-2T for ntg-context@ntg.nl; Sun, 04 Dec 2005 10:54:54 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24087 Archived-At: Hans van der Meer wrote: > I am confused about the behaviour of \cal and calligraphic. > In a font where the calligraphic letters are in MathItalic all goes well. > But, in a font where the calligraphic letters come from another font I > get: > > \definefontsynonym [Calligraphic] [FONT_OTHER_THAN_MathSymbol] The font "Calligraphic" is not the same as the math alphabet for \cal, except when the only calligraphic alphabet available is the one in the math font. The confusion arises because in text mode, \cal is remapped to the \calligraphic command. (switching to math mode would be too hard to do reliably at this point). Two options are possible to sanitize this behaviour. A.: My guess is you would be less confused if: in text: \calligraphic{ABC} is ok in text: {\cal ABC} is ERROR: "missing _ inserted" in math: $\calligraphic{ABC}$ is ok in text: ${\cal ABC}$ is math cal alphabet But suddenly switching the current behaviour to an error message raises compatibility problems, so that is a no-no. After some messing about, I came up with a definition of \cal that implements this (but it is rather ugly): \def\cal% {\mathortext {\fam\purefamily{calligraphic}} {$\fam\purefamily{calligraphic}% \xdef\calfam{\fontname\textfont\fam}$% \font\dummy=\calfam \dummy}} B.: Or there could be: in text: \calligraphic{ABC} is ok in text: {\cal ABC} is ok in math: $\calligraphic{ABC}$ is ok in text: ${\cal ABC}$ is ok This needs an even weirder definition of \cal, but it can be done (note: this trashes a math family completely!): \def\cal% {\mathortext {\hbox{% \symbolicscaledfont{1}{Calligraphic}% \global\textfont\nnfam=\thedefinedfont \symbolicscaledfont{0.7}{Calligraphic}% \global\scriptfont\nnfam=\thedefinedfont \symbolicscaledfont{0.5}{Calligraphic}% \global\scriptscriptfont\nnfam=\thedefinedfont}% \fam\nnfam } {\symbolicfont{Calligraphic}}} Hans, what do you think? Cheers, Taco PS I assume there is a similar problem with the other families: os (OldStyle), frak (Fraktur), goth (Gothic), bbd (BlackBoard).