From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22450 Path: news.gmane.org!not-for-mail From: Brooks Moses Newsgroups: gmane.comp.tex.context Subject: Re: \begin{cases} .. \end{cases} in ConTeXt Date: Mon, 12 Sep 2005 16:58:33 -0700 Message-ID: <4.3.1.2.20050912164802.02f2dc70@cits1.stanford.edu> References: <43260902.2000907@wxs.nl> <1126558464.10053.6.camel@localhost.localdomain> <43260902.2000907@wxs.nl> <4326127C.7060501@virgilio.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1126569581 19049 80.91.229.2 (12 Sep 2005 23:59:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2005 23:59:41 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 13 01:59:37 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEyCf-0007WW-Fb for gctc-ntg-context-518@m.gmane.org; Tue, 13 Sep 2005 01:59:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C425127F3; Tue, 13 Sep 2005 01:59:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19016-10-3; Tue, 13 Sep 2005 01:59:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32214127F5; Tue, 13 Sep 2005 01:59:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0567A127F5 for ; Tue, 13 Sep 2005 01:59:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19016-10-2 for ; Tue, 13 Sep 2005 01:59:07 +0200 (CEST) Original-Received: from smtp3.Stanford.EDU (smtp3.Stanford.EDU [171.67.16.138]) by ronja.ntg.nl (Postfix) with ESMTP id CAE03127F3 for ; Tue, 13 Sep 2005 01:59:06 +0200 (CEST) Original-Received: from mindolluin.stanford.edu (DNab42a4a7.Stanford.EDU [171.66.164.167]) by smtp3.Stanford.EDU (8.12.11/8.12.11) with ESMTP id j8CNx3ZX019300 for ; Mon, 12 Sep 2005 16:59:04 -0700 X-Sender: brooks@cits1.stanford.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Original-To: mailing list for ConTeXt users In-Reply-To: <4326127C.7060501@virgilio.it> Original-References: <43260902.2000907@wxs.nl> <1126558464.10053.6.camel@localhost.localdomain> <43260902.2000907@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22450 Archived-At: 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