ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange math error (bug ??)
@ 2006-08-25 17:26 WN
  2006-08-25 17:30 ` Aditya Mahajan
  2006-08-25 17:32 ` Mojca Miklavec
  0 siblings, 2 replies; 4+ messages in thread
From: WN @ 2006-08-25 17:26 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Strange math error (bug ??)
  2006-08-25 17:26 Strange math error (bug ??) WN
@ 2006-08-25 17:30 ` Aditya Mahajan
  2006-08-25 19:10   ` WN
  2006-08-25 17:32 ` Mojca Miklavec
  1 sibling, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2006-08-25 17:30 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Strange math error (bug ??)
  2006-08-25 17:26 Strange math error (bug ??) WN
  2006-08-25 17:30 ` Aditya Mahajan
@ 2006-08-25 17:32 ` Mojca Miklavec
  1 sibling, 0 replies; 4+ messages in thread
From: Mojca Miklavec @ 2006-08-25 17:32 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Strange math error (bug ??)
  2006-08-25 17:30 ` Aditya Mahajan
@ 2006-08-25 19:10   ` WN
  0 siblings, 0 replies; 4+ messages in thread
From: WN @ 2006-08-25 19:10 UTC (permalink / raw)


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
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-25 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25 17:26 Strange math error (bug ??) WN
2006-08-25 17:30 ` Aditya Mahajan
2006-08-25 19:10   ` WN
2006-08-25 17:32 ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).