ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ntg-context Digest, Vol 11, Issue 29
       [not found] <20050514100003.538C612799@ronja.ntg.nl>
@ 2005-05-14 17:48 ` Fei He
  2005-05-14 22:10   ` Otared Kavian
  0 siblings, 1 reply; 2+ messages in thread
From: Fei He @ 2005-05-14 17:48 UTC (permalink / raw)


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

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

* Re: ntg-context Digest, Vol 11, Issue 29
  2005-05-14 17:48 ` ntg-context Digest, Vol 11, Issue 29 Fei He
@ 2005-05-14 22:10   ` Otared Kavian
  0 siblings, 0 replies; 2+ messages in thread
From: Otared Kavian @ 2005-05-14 22:10 UTC (permalink / raw)
  Cc: ntg-context

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

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

end of thread, other threads:[~2005-05-14 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20050514100003.538C612799@ronja.ntg.nl>
2005-05-14 17:48 ` ntg-context Digest, Vol 11, Issue 29 Fei He
2005-05-14 22:10   ` Otared Kavian

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).