Strange math error (bug ??)
![](https://secure.gravatar.com/avatar/067b85830c465c3f13bb006294fa2b0e.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/067b85830c465c3f13bb006294fa2b0e.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
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