Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-24 Thread Hans Hagen

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

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-24 Thread Aditya Mahajan

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
___


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-24 Thread Hans Hagen

On 24-1-2010 22:17, Aditya Mahajan wrote:


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.


ok, just send me a patch then


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


 ...


What do you think?


i have no problem with that ... so if no one comes up with good 
arguments against it we can do that


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-22 Thread Hans Hagen

On 22-1-2010 16:55, Matthias Weber wrote:


Dear all,

what's the best way to use calligraphic letters in LuaTeX?

I am used to

\starttext
\calligraphic{H}
\stoptext

which doesn't work in Mark IV (undefined control sequence).


that was actually something math

in mkiv you have to define a caligraphic font


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-22 Thread Matthias Weber



Yes indeed, I need this just for math.
So do I really need to grab some font that has calligraphic , write/ 
use a typescript, and then write

$text{\calligraphic H}$
or is there a simpler way that works out of the box?

Sorry for asking these simple questions, I just haven't started  
looking into fonts yet...


Matthias Weber


On Jan 22, 2010, at 12:29 PM, Hans Hagen wrote:


On 22-1-2010 16:55, Matthias Weber wrote:


Dear all,

what's the best way to use calligraphic letters in LuaTeX?

I am used to

\starttext
\calligraphic{H}
\stoptext

which doesn't work in Mark IV (undefined control sequence).


that was actually something math

in mkiv you have to define a caligraphic font


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
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
___


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


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-22 Thread Wolfgang Schuster

Am 22.01.10 18:49, schrieb Matthias Weber:



Yes indeed, I need this just for math.
So do I really need to grab some font that has calligraphic , write/use
a typescript, and then write
$text{\calligraphic H}$
or is there a simpler way that works out of the box?


$H{\cal H}$

Wolfgang
___
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
___


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-22 Thread Matthias Weber

Thanks!

Matthias
On Jan 22, 2010, at 12:53 PM, Wolfgang Schuster wrote:


Am 22.01.10 18:49, schrieb Matthias Weber:



Yes indeed, I need this just for math.
So do I really need to grab some font that has calligraphic , write/ 
use

a typescript, and then write
$text{\calligraphic H}$
or is there a simpler way that works out of the box?


$H{\cal H}$

Wolfgang
___
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
___


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


Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-22 Thread Wolfgang Schuster

Am 22.01.10 18:29, schrieb Hans Hagen:

On 22-1-2010 16:55, Matthias Weber wrote:


Dear all,

what's the best way to use calligraphic letters in LuaTeX?

I am used to

\starttext
\calligraphic{H}
\stoptext

which doesn't work in Mark IV (undefined control sequence).


that was actually something math

in mkiv you have to define a caligraphic font


but \calligraphic is no longer available in mkiv, can you add

\unexpanded\def\calligraphic{\ifmmode\expandafter\mathscript\fi}

to math-ini.mkiv?

Wolfgang
___
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
___