Re: [NTG-context] luatex math font

2011-10-15 Thread Khaled Hosny
On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
 Hello,
 
 compiling the following with 'context'
 
 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext
 
 produces a blackboard 'J' character in J[f] instead of a $J$.

I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
traditionally at least, a font switch).

Regards,
 Khaled
___
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] luatex math font

2011-10-15 Thread Wolfgang Schuster

Am 15.10.2011 um 14:36 schrieb Khaled Hosny:

 On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
 Hello,
 
 compiling the following with 'context'
 
 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext
 
 produces a blackboard 'J' character in J[f] instead of a $J$.
 
 I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
 traditionally at least, a font switch).

No, the font switch is \bbd.

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] luatex math font

2011-10-15 Thread Khaled Hosny
On Sat, Oct 15, 2011 at 02:44:18PM +0200, Wolfgang Schuster wrote:
 
 Am 15.10.2011 um 14:36 schrieb Khaled Hosny:
 
  On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
  Hello,
  
  compiling the following with 'context'
  
  \starttext
  \startformula
  J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
  \stopformula
  \stoptext
  
  produces a blackboard 'J' character in J[f] instead of a $J$.
  
  I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
  traditionally at least, a font switch).
 
 No, the font switch is \bbd.

So what is the correct syntax then, as I notice other issues in his
example (the f is roman not italic) that disappear if \blackboard is
grouped.

Regards,
 Khaled
___
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] luatex math font

2011-10-15 Thread Wolfgang Schuster

Am 15.10.2011 um 14:48 schrieb Khaled Hosny:

 On Sat, Oct 15, 2011 at 02:44:18PM +0200, Wolfgang Schuster wrote:
 
 Am 15.10.2011 um 14:36 schrieb Khaled Hosny:
 
 On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
 Hello,
 
 compiling the following with 'context'
 
 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext
 
 produces a blackboard 'J' character in J[f] instead of a $J$.
 
 I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
 traditionally at least, a font switch).
 
 No, the font switch is \bbd.
 
 So what is the correct syntax then, as I notice other issues in his
 example (the f is roman not italic) that disappear if \blackboard is
 grouped.

I’m sorry but you’re right. For MkII \blackboard has a argument but
in MkIV it is a font switch like \fraktur, \gothic etc.

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] luatex math font

2011-10-15 Thread Khaled Hosny
On Sat, Oct 15, 2011 at 02:44:18PM +0200, Wolfgang Schuster wrote:
 
 Am 15.10.2011 um 14:36 schrieb Khaled Hosny:
 
  On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
  Hello,
  
  compiling the following with 'context'
  
  \starttext
  \startformula
  J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
  \stopformula
  \stoptext
  
  produces a blackboard 'J' character in J[f] instead of a $J$.
  
  I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
  traditionally at least, a font switch).
 
 No, the font switch is \bbd.

In math-ini.mkiv, both \blackboard and \bbd have exactly the same
definition:

\unexpanded\def\bbd   {\ifmmode\expandafter\mathblackboard\fi}
\unexpanded\def\blackboard{\ifmmode\expandafter\mathblackboard\fi}

Regards,
 Khaled
___
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
___