ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Calligraphic letters in Mark IV
Date: Sun, 24 Jan 2010 16:17:32 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1001241555290.18350@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4B5C4C83.8050602@wxs.nl>

On Sun, 24 Jan 2010, Hans Hagen wrote:

> On 22-1-2010 19:20, Wolfgang Schuster wrote:
>
>> \unexpanded\def\calligraphic{\ifmmode\expandafter\mathscript \fi}
>> 
>> to math-ini.mkiv?
>
> probably something
>
> \unexpanded\def\calligraphic{\groupedcommand{...
>
> then but lets see what aditya thinks of it ...

I think that we should have \calligraphic for text calligraphic fonts 
only. For math, plain tex had \cal as a font switch, MkIV has \mathscript 
and \mathcal. I am not sure that we need another font switch in math.

I know, that in mkii \calligraphic is available in math mode, but I did 
not like that either. Since you are asking for my opinion, I think that it 
should go :-). For backward compatibility, we can add 
appropriate definition of \calligraphic to m-mkii module.

While we are at this topic, I think that we should change the definitions 
of \mathbf, \mathtf, etc from being a font switch to being a grouped 
command (to be more in tune with ams convetions). So, in math-ini.mkiv we 
can have

diff --git a/math-ini.mkiv b/math-ini.mkiv
index 17b0205..65bd43c 100644
--- a/math-ini.mkiv
+++ b/math-ini.mkiv
@@ -72,23 +72,27 @@
  \unexpanded\def\mathfraktur   {\setmathalphabet{fraktur}}
  \unexpanded\def\mathblackboard{\setmathalphabet{blackboard}}

-\unexpanded\def\mathrm{\setmathattribute{rm}{tf}}
-\unexpanded\def\mathss{\setmathattribute{ss}{tf}}
-\unexpanded\def\mathtt{\setmathattribute{tt}{tf}}
-
-\unexpanded\def\mathtf{\setmathstyle{tf}}
-\unexpanded\def\mathbf{\setmathstyle{bf}}
-\unexpanded\def\mathsl{\setmathstyle{sl}}
-\unexpanded\def\mathit{\setmathstyle{it}}
-\unexpanded\def\mathbs{\setmathstyle{bs}}
-\unexpanded\def\mathbi{\setmathstyle{bi}}
-
-\let\tfmath\mathtf % maybe a grouped command
-\let\bfmath\mathbf
-\let\slmath\mathsl
-\let\itmath\mathit
-\let\bsmath\mathbs
-\let\bimath\mathbi
+\unexpanded\def\rmmath{\setmathattribute{rm}{tf}}
+\unexpanded\def\ssmath{\setmathattribute{ss}{tf}}
+\unexpanded\def\ttmath{\setmathattribute{tt}{tf}}
+
+\unexpanded\def\tfmath{\setmathstyle{tf}}
+\unexpanded\def\bfmath{\setmathstyle{bf}}
+\unexpanded\def\slmath{\setmathstyle{sl}}
+\unexpanded\def\itmath{\setmathstyle{it}}
+\unexpanded\def\bsmath{\setmathstyle{bs}}
+\unexpanded\def\bimath{\setmathstyle{bi}}
+
+\unexpanded\def\mathrm{\groupedcommand{\rmmath}{}} 
+\unexpanded\def\mathss{\groupedcommand{\ssmath}{}} 
+\unexpanded\def\mathtt{\groupedcommand{\ttmath}{}} 
+
+\unexpanded\def\mathtf{\groupedcommand{\tfmath}{}} 
+\unexpanded\def\mathbf{\groupedcommand{\bfmath}{}}
+\unexpanded\def\mathsl{\groupedcommand{\slmath}{}}
+\unexpanded\def\mathit{\groupedcommand{\itmath}{}}
+\unexpanded\def\mathbs{\groupedcommand{\bsmath}{}}
+\unexpanded\def\mathbi{\groupedcommand{\bimath}{}}

  \let\Bbb\mathblackboard


What do you think?

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2010-01-24 21:17 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 10:51 spaces in file names Hans van der Meer
2010-01-13 10:55 ` luigi scarso
2010-01-13 11:12   ` Hans van der Meer
2010-01-13 11:16     ` luigi scarso
2010-01-13 11:26       ` Hans van der Meer
2010-01-13 11:30         ` luigi scarso
2010-01-13 11:32         ` Wolfgang Schuster
2010-01-13 11:38           ` Hans van der Meer
2010-01-13 11:42             ` Wolfgang Schuster
2010-01-13 13:23           ` Peter Rolf
2010-01-13 15:35 ` Otared Kavian
2010-01-13 16:30   ` Hans van der Meer
2010-01-13 17:59     ` Hans Hagen
2010-01-13 19:34       ` Hans van der Meer
2010-01-13 19:46         ` Hans van der Meer
2010-01-13 20:39           ` Hans Hagen
2010-01-14 20:16             ` Text backgrounds once again Matthias Weber
2010-01-14 20:55               ` Text backgrounds once again (follow-up) Matthias Weber
2010-01-14 21:39                 ` Willi Egger
2010-01-14 21:45                   ` Matthias Weber
2010-01-14 22:15                     ` Aditya Mahajan
2010-01-15 12:58                       ` Matthias Weber
2010-01-14 21:48                 ` NOT reusing figures Matthias Weber
2010-01-14 22:36                   ` Hans Hagen
2010-01-15  0:58                     ` Matthias Weber
2010-01-15 15:26                       ` reusing figures ok - problem with hiding blocks in MKIV Matthias Weber
2010-01-18  9:00                         ` Hans Hagen
2010-01-22 15:19                           ` More questions about hiding/reusing blocks Matthias Weber
2010-01-22 15:55                             ` Calligraphic letters in Mark IV Matthias Weber
2010-01-22 17:29                               ` Hans Hagen
2010-01-22 17:49                                 ` Matthias Weber
2010-01-22 17:53                                   ` Wolfgang Schuster
2010-01-22 18:14                                     ` Matthias Weber
2010-01-22 18:20                                 ` Wolfgang Schuster
2010-01-24 13:34                                   ` Hans Hagen
2010-01-24 21:17                                     ` Aditya Mahajan [this message]
2010-01-24 22:45                                       ` Hans Hagen
2010-01-24 16:57                             ` More questions about hiding/reusing blocks Hans Hagen
     [not found]                               ` <A4C3BD19-AAE4-4033-AA0E-A2C2DB586BFB@indiana.edu>
2010-01-25  0:15                                 ` Hans Hagen
2010-01-14  2:00           ` spaces in file names Vladimir Lomov
2010-01-13 19:59         ` Thomas A. Schmitz
2010-01-13 20:32           ` 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=alpine.LNX.2.01.1001241555290.18350@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).