Strange math error (bug ??)

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

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

adityam@umich.edu 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

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
participants (3)
-
Aditya Mahajan
-
Mojca Miklavec
-
WN