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