ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Brooks Moses <bmoses@stanford.edu>
Subject: Re: \begin{cases} .. \end{cases} in ConTeXt
Date: Mon, 12 Sep 2005 16:58:33 -0700	[thread overview]
Message-ID: <4.3.1.2.20050912164802.02f2dc70@cits1.stanford.edu> (raw)
In-Reply-To: <4326127C.7060501@virgilio.it>

At 04:42 PM 9/12/2005, you wrote:
>I have tried with:
>
>\startcases
>.. \stopcases
>
>and many others variations but I have got only errors.
>Any hint?

Much like the bmatrix environment, the cases environment is an AMSmath 
package feature, and ConTeXt at present has very few of the direct 
equivalents to those implemented.  You'll need to make this one up with a 
Plain TeX \matrix, as well.  (The TeXbook is a pretty good reference for this.)

Something like this should work, to recreate the example from page 8 of the 
AMSmath manual:

   P_{r-j} =
   \left\lbrace
     \matrix{
        0                 \hfill& \text{if $r-j$ is odd}   \hfill\cr
        r!(-1)^{(r-j)/2}  \hfill& \text{if $r-j$ is even}  \hfill\cr
     }
   \right.

The \left\lbrace and \right. create the properly expanded brace at the 
left, the \matrix handles putting things in the right places, the \hfills 
make each of the columns left-aligned, and the \text{} commands (which _do_ 
exist in ConTeXt, unlike in Plain TeX) typeset their arguments as text 
rather than math.

- Brooks

  reply	other threads:[~2005-09-12 23:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-12 20:54 free keycaps font Stuart Jansen
2005-09-12 21:08 ` Nikolai Weibull
2005-09-12 21:16   ` Stuart Jansen
2005-09-12 22:04     ` Nikolai Weibull
2005-09-12 22:37     ` Brooks Moses
2005-09-12 23:44     ` Brooks Moses
2005-09-13  7:37       ` Hans Hagen
2005-09-14 10:50         ` Christopher Creutzig
2005-09-14 11:56           ` Hans Hagen
2005-09-12 22:18   ` Hans Hagen
2005-09-17 23:21   ` Stuart Jansen
2005-09-12 23:02 ` Hans Hagen
2005-09-12 23:42   ` \begin{cases} .. \end{cases} in ConTeXt Jilani Khaldi
2005-09-12 23:58     ` Brooks Moses [this message]
2005-09-13  0:08       ` Brooks Moses
2005-09-13 15:13         ` \begin{cases} .. \end{cases} in ConTeXt - Thanks! Jilani Khaldi
2005-09-13  1:55   ` free keycaps font Stuart Jansen

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=4.3.1.2.20050912164802.02f2dc70@cits1.stanford.edu \
    --to=bmoses@stanford.edu \
    --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).