[NTG-context] Strange math error (bug ??)

2006-08-25 Thread WN
Hello,

The following is quit strange, in the first formula the [{Q}, {R} ] on the
left hand side of the \rightarrow is not processed but on the right hand 
side of
the \rightarrow it is processed (?)

\starttext
The left side with $[Q,R]$ does not show, but the
right side with $[Q,R]$ does show, what is happening here ???
\startformula
[ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
\stopformula
\stoptext

Kind regards
Wim
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread Aditya Mahajan
On Fri, 25 Aug 2006, WN wrote:

 Hello,

 The following is quit strange, in the first formula the [{Q}, {R} ] on the
 left hand side of the \rightarrow is not processed but on the right hand
 side of
 the \rightarrow it is processed (?)

 \starttext
 The left side with $[Q,R]$ does not show, but the
 right side with $[Q,R]$ does show, what is happening here ???
 \startformula

\relax

 [ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
 \stopformula
 \stoptext

\startformula, like most commands in context, accepts an optional 
argument, so [...] immediately after \startformula is gobbled. Just 
add a \relax after \startformula and you should be fine.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread Mojca Miklavec
On 8/25/06, WN wrote:
 Hello,

 The following is quit strange, in the first formula the [{Q}, {R} ] on the
 left hand side of the \rightarrow is not processed but on the right hand
 side of
 the \rightarrow it is processed (?)

 \starttext
 The left side with $[Q,R]$ does not show, but the
 right side with $[Q,R]$ does show, what is happening here ???
 \startformula
 [ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
 \stopformula
 \stoptext

Not a bug, but a price that you have to pay for having optional
parameters. Adding \relax after \startformula solves the problem.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread WN
[EMAIL PROTECTED] wrote:
 On Fri, 25 Aug 2006, WN wrote:

   
 Hello,

 The following is quit strange, in the first formula the [{Q}, {R} ] on the
 left hand side of the \rightarrow is not processed but on the right hand
 side of
 the \rightarrow it is processed (?)

 \starttext
 The left side with $[Q,R]$ does not show, but the
 right side with $[Q,R]$ does show, what is happening here ???
 \startformula
 

 \relax

   
 [ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
 \stopformula
 \stoptext
 
Should have seen this coming. Thanks.
 \startformula, like most commands in context, accepts an optional 
 argument, so [...] immediately after \startformula is gobbled. Just 
 add a \relax after \startformula and you should be fine.

 Aditya
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context