From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25554 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: LaTeX array equivalence with multiline \lbrace Date: Wed, 25 Jan 2006 11:32:35 -0500 (EST) Message-ID: References: <43D67EB3.5020800@nibua-r.org> <43D76D7A.7060106@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138207159 5409 80.91.229.2 (25 Jan 2006 16:39:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 16:39:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 25 17:39:16 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1F1nZu-0000Y6-8X for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jan 2006 17:33:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93483127EE; Wed, 25 Jan 2006 17:33:01 +0100 (CET) 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 13868-04-5; Wed, 25 Jan 2006 17:32:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79234127BA; Wed, 25 Jan 2006 17:32:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1005A127BA for ; Wed, 25 Jan 2006 17:32:58 +0100 (CET) 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 13868-04-4 for ; Wed, 25 Jan 2006 17:32:57 +0100 (CET) Original-Received: from beyondborders.mr.itd.umich.edu (beyondborders.mr.itd.umich.edu [141.211.93.146]) by ronja.ntg.nl (Postfix) with SMTP id BA562127B0 for ; Wed, 25 Jan 2006 17:32:42 +0100 (CET) Original-Received: from eecs4327u07.engin.umich.edu (eecs4327u07.engin.umich.edu [141.213.51.135]) by beyondborders.mr.itd.umich.edu (smtp) with ESMTP id k0PGWZA0023188 for ; Wed, 25 Jan 2006 11:32:41 -0500 X-X-Sender: adityam@eecs4327u07.engin.umich.edu Original-To: mailing list for ConTeXt users In-Reply-To: <43D76D7A.7060106@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25554 Archived-At: On Wed, 25 Jan 2006, Hans Hagen wrote: > Aditya Mahajan wrote: > >> <--- On Jan 24, Renaud AUBIN wrote ---> >> >> >> >>> With LaTeX, I have >>> $$ >>> \left\lbrace >>> \begin{array}{l} >>> \dot{q}_i = 1 \quad\text{ if } i=k \\ >>> \dot{q}_i = 0 \quad\text{ else} >>> \end{array} >>> \right >>> $$ >>> >>> >> >> Well the ConTeXt way (rather the TeX way) of doing this is to use >> \cases. >> >> $$ >> \cases{ >> \dot q_i = 1, & \text{ if } i = k \cr >> \dot q_i = 0, & \text{ else } \cr >> } >> $$ >> >> > maybe we should add a left|right option to the new align mechanism so > that one can define such constructs .. does that make sense? If I understand you correctly, then something like this \definealign[cases][left={\left\{}, right={\right.}, n=2, align={left,left}] will give us \startcases, \stopcases which works like \cases. Such a feature will be very useful. Is it possible to define left|right in such a way that \definealign[important][left={\framed\bgroup},right={\egroup}] results in a frame around the equations (and does not include the equation numbers), that is the frame is as broad as the width of the largest equation that follows. This mechanism can be used to highlight equations. Also, in another post, I had asked if it is possible to have cases that are numbered, that is, can I get { b , if whatever (1a) a ={ { c, otherwise (1b) This is not important, but will be nice to have. Aditya