From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46708 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 19:14:58 -0500 (EST) Message-ID: References: <20090110175340.GP19367@atos.labs.wmid.amu.edu.pl> <20090110183119.GQ19367@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 1231633076 12531 80.91.229.12 (11 Jan 2009 00:17:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2009 00:17:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 11 01:19:07 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 1LLo2i-0000a7-UM for gctc-ntg-context-518@m.gmane.org; Sun, 11 Jan 2009 01:19:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8469B1FD5A; Sun, 11 Jan 2009 01:17:45 +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 30175-02-5; Sun, 11 Jan 2009 01:16:43 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 20E721FB95; Sun, 11 Jan 2009 01:16:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B91601FB95 for ; Sun, 11 Jan 2009 01:16:40 +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 30175-02-4 for ; Sun, 11 Jan 2009 01:15:51 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 30DAC1FB74 for ; Sun, 11 Jan 2009 01:15:50 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY hackers.mr.itd.umich.edu ID 49693A35.215CF.11803 ; 10 Jan 2009 19:15:49 -0500 In-Reply-To: <20090110183119.GQ19367@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:46708 Archived-At: On Sat, 10 Jan 2009, Marcin Borkowski wrote: > Dnia Sat, Jan 10, 2009 at 01:15:28PM -0500, Aditya Mahajan napisał(a): >> 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. > > Sorry;). > >> \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 > > Both work just fine, but with distance=0pt instead. Thanks! There is > only a minor problem with the former one: it's somehow shifted to the > left compared with the latter (both in MkII and MkIV). I have no idea > why. mathcases has a numberdistance key, which adds some width at the end of each row. You can set numberdistance to zero. >> 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. > > Of course - the {} is an "ord" atom for TeX, AFAIR. > >> If you frequently need something like this, you can use >> definemathcases/definemathmatrix to define a new environment with >> appropriate parameters. > > Yes; however, I'd still have to use the {} after the \NC... Yes. You can define something like \OC (ord column) to be \NC{}. 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 ___________________________________________________________________________________