ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: Re: cal & calligraphic
Date: Mon, 5 Dec 2005 21:12:56 +0100	[thread overview]
Message-ID: <0C321E2D-19C7-4FAC-99F1-AE7BBF3C9A18@science.uva.nl> (raw)
In-Reply-To: <4392CAB2.9080500@elvenkind.com>

For your information, the problem arose because Y&Y's MathTimes does  
not has its calligraphic letters in the MathItalic font, but in a  
separate calligraphic font (mtms and friends).

On Dec 4, 2005, at 11:53, Taco Hoekwater wrote:

> 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).
>

>
> 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}}}
>

I would think the most elegant solution is the one where \calligraphic 
{ABC} and {\cal ABC} in both text and math modes give the same  
result. Thus no exceptional behaviour for one of these four. Any  
other choice would in my opinion be confusing and difficult to  
understand.

yours sincerely,
Hans van der Meer

  reply	other threads:[~2005-12-05 20:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-03 13:41 Hans van der Meer
2005-12-04 10:53 ` Taco Hoekwater
2005-12-05 20:12   ` Hans van der Meer [this message]
2005-12-05 11:31 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0C321E2D-19C7-4FAC-99F1-AE7BBF3C9A18@science.uva.nl \
    --to=hansm@science.uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).