ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@wanadoo.fr>
Cc: ntg-context@ntg.nl
Subject: Re: ntg-context Digest, Vol 11, Issue 29
Date: Sun, 15 May 2005 00:10:13 +0200	[thread overview]
Message-ID: <p06110401beac26d5319c@[10.0.1.137]> (raw)
In-Reply-To: <ba619461050514104843acdc75@mail.gmail.com>

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

      reply	other threads:[~2005-05-14 22:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050514100003.538C612799@ronja.ntg.nl>
2005-05-14 17:48 ` Fei He
2005-05-14 22:10   ` Otared Kavian [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='p06110401beac26d5319c@[10.0.1.137]' \
    --to=otared@wanadoo.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).