Re: ntg-context Digest, Vol 11, Issue 29
Hi all, I have a math equation question too. This has made me pulling my hair off, for a while. Please see below: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usemodule[amsl] \starttext
\startformula {\bf f(x)} = \cases{ \sum_{x=1}^n x & if I am false \\ ~~~~~~ I can never make this work for me to start new line in the equation. \displaystyle% just to see the difference \sum_{x=1}^n x^2 & \text{if I am true} ~~ this & never seems to give me the alignment that I need. } \stopformula
any idea. thanks a lot!!! Best, Fei
At 10:48 -0700 14/05/05, Fei He wrote:
Hi all,
I have a math equation question too. This has made me pulling my hair off, for a while. Please see below: (snip)
~~ this & never seems to give me the alignment that I need.
} \stopformula
Hi, I think the point is to use a \cr after each line of aligned text in \cases. On my installation the following works fine: \usemodule[amsl] \starttext \startformula {\bf f(x)} = \cases{ \sum_{x=1}^n x &\quad if I am false \cr \displaystyle % just to see the difference \sum_{x=1}^n x^2 &\quad \text{if I am true} \cr } \stopformula \stoptext Note that I added a \quad after each "&" in order to have a little more space: however this is not essential. Best regards: OK
participants (2)
-
Fei He
-
Otared Kavian