From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46706 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Math alignment problem Date: Sat, 10 Jan 2009 13:15:28 -0500 (EST) Message-ID: References: <20090110175340.GP19367@atos.labs.wmid.amu.edu.pl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231611497 10805 80.91.229.12 (10 Jan 2009 18:18:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2009 18:18:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 10 19:19:28 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LLiQh-0000E6-BN for gctc-ntg-context-518@m.gmane.org; Sat, 10 Jan 2009 19:19:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65E951FE27; Sat, 10 Jan 2009 19:18:09 +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 09428-08-6; Sat, 10 Jan 2009 19:16:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A7A0A1FC0D; Sat, 10 Jan 2009 19:16:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F126A1FC0D for ; Sat, 10 Jan 2009 19:16:52 +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 10358-01-6 for ; Sat, 10 Jan 2009 19:16:20 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id E5B951FA4C for ; Sat, 10 Jan 2009 19:16:19 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY skycaptain.mr.itd.umich.edu ID 4968E5F2.78D47.29432 ; 10 Jan 2009 13:16:18 -0500 In-Reply-To: <20090110175340.GP19367@atos.labs.wmid.amu.edu.pl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46706 Archived-At: On Sat, 10 Jan 2009, Marcin Borkowski wrote: > Hi all, > > I'd like to typeset a system of simultaneous equations. I want it to > have a brace on the left (like "cases"), but inside I want it to have > two columns aligned like "align". Also, I'd like to have the vertical > space between the equations be small (like in cases), not so big as in > align. > > How to do this? I do not completely understand what you want. Do the following give the desired output. \starttext \startformula \startcases[align={right,left},distance=3pt] \NC 2x + 3y \MC{} = 10 \NR \NC 3x + 2y \MC{} = 5 \NR \stopcases \stopformula \startformula \startmatrix[align={right,left},distance=3pt,left={\left\{}, right={\right.}] \NC 2x + 3y \NC{} = 10 \NR \NC 3x + 2y \NC{} = 5 \NR \stopmatrix \stopformula \stoptext The {} after the alignment \NC is useful if the next symbol is something that can be a uniary or binary symbol (eg, + or -). The {} tells tex to treat is as a binary symbol. If you frequently need something like this, you can use definemathcases/definemathmatrix to define a new environment with appropriate parameters. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________