From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30000 Path: news.gmane.org!not-for-mail From: WN Newsgroups: gmane.comp.tex.context Subject: Re: Updated My Way on math alignment Date: Sat, 05 Aug 2006 15:55:01 +0200 Message-ID: <44D4A335.4000901@cs.com> References: <44D36A82.4010807@cs.com> 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 1154786123 32470 80.91.229.2 (5 Aug 2006 13:55:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2006 13:55:23 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 05 15:55:20 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 1G9McZ-0001sd-J6 for gctc-ntg-context-518@m.gmane.org; Sat, 05 Aug 2006 15:55:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2AAC91FF8A; Sat, 5 Aug 2006 15:55:19 +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 32310-07; Sat, 5 Aug 2006 15:55:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8EBAB1FF43; Sat, 5 Aug 2006 15:55:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 181351FF43 for ; Sat, 5 Aug 2006 15:55:07 +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 32361-05-3 for ; Sat, 5 Aug 2006 15:55:04 +0200 (CEST) Original-Received: from imo-d21.mx.aol.com (imo-d21.mx.aol.com [205.188.144.207]) by ronja.ntg.nl (Postfix) with SMTP id 23BA81FEB3 for ; Sat, 5 Aug 2006 15:55:03 +0200 (CEST) Original-Received: from Wneimeijer01@cs.com by imo-d21.mx.aol.com (mail_out_v38_r7.6.) id a.bc2.204d2d4 (45776); Sat, 5 Aug 2006 09:54:55 -0400 (EDT) Original-Received: from [192.168.1.33] (3e331ada.dslaccess.aol.com [62.51.26.218]) by ciaaol-r01.mx.aol.com (v110.15) with ESMTP id MAILCIAAOLR015-b2d044d4a32e51; Sat, 05 Aug 2006 09:54:55 -0400 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: mailing list for ConTeXt users , adityam@umich.edu In-Reply-To: X-AOL-IP: 62.51.26.218 X-Mailer: Unknown (No Version) 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:30000 Archived-At: adityam@umich.edu wrote: > Hi Wim, > > On Fri, 4 Aug 2006, WN wrote: > > >> I have a question about \startcases .. \stopcases. >> I am trying to adjust the distance of the cases and the right brace, the >> left brace is empty, >> see example below. Is this possible ? >> > > It is. You can do it in different ways, depending on what you like. > > >> % Example >> \starttext >> \startformula >> *\startcases[left={\left.},right={\right\}}]* >> \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR >> \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b \NC \NR >> \stopcases >> \text{(distributieve eigenschappen)} >> \stopformula >> \stoptext >> > > > \starttext > > The original one. > > \startformula > \startcases[left={\left.},right={\right\}}] > \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR > \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b \NC \NR > \stopcases > \text{(distributieve eigenschappen)} > \stopformula > > You can reduce the \quotation{width} of the cases, > > \startformula > \startcases[left={\left.},right={\right\}},numberdistance=0pt] > \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR > \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b \NC \NR > \stopcases > \text{(distributieve eigenschappen)} > \stopformula > > or use a matrix (only one column) > > \startformula > \startmatrix[left={\left.},right={\right\}}] > \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR > \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b \NR > \stopmatrix > \text{(distributieve eigenschappen)} > \stopformula > > maybe a right aligned one > > \startformula > \startmatrix[left={\left.},right={\right\}},align=right] > \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR > \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b \NR > \stopmatrix > \text{(distributieve eigenschappen)} > \stopformula > > and this is how I would do it > > \definemathmatrix[aligned][n=2,align={right,left},distance=0pt] > > \startformula > \startaligned[left={\left.},right={\right\}}] > \NC (\lambda + \mu ) \cdot a \NC{} = \lambda \cdot a + \mu \cdot a > \NR > \NC \lambda ( a + b ) \NC {}= \lambda \cdot a + \lambda \cdot b > \NR > \stopaligned > \text{(distributieve eigenschappen)} > \stopformula > > Aditya > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > I did not know the numberdistance existed, I would think it specifies the distance between the columns and the number of the equation. Anyways your solutions work like a charm. Many thanks for your help. Wim