From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46707 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Re: Math alignment problem Date: Sat, 10 Jan 2009 19:31:19 +0100 Message-ID: <20090110183119.GQ19367@atos.labs.wmid.amu.edu.pl> 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="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231612389 13604 80.91.229.12 (10 Jan 2009 18:33:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2009 18:33:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 10 19:34:19 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 1LLif5-0004ZZ-1I for gctc-ntg-context-518@m.gmane.org; Sat, 10 Jan 2009 19:34:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 791211FD55; Sat, 10 Jan 2009 19:33:00 +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 12984-01-5; Sat, 10 Jan 2009 19:31:56 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A1001FD5A; Sat, 10 Jan 2009 19:31:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EF6B1FD5A for ; Sat, 10 Jan 2009 19:31:54 +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 10357-03-5 for ; Sat, 10 Jan 2009 19:31:19 +0100 (CET) Original-Received: from atos.wmid.amu.edu.pl (atos.wmid.amu.edu.pl [150.254.78.2]) by ronja.ntg.nl (Postfix) with ESMTP id AA5C91FD4A for ; Sat, 10 Jan 2009 19:31:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by atos.wmid.amu.edu.pl (Postfix) with ESMTP id 5EB561011F7F for ; Sat, 10 Jan 2009 19:31:19 +0100 (CET) X-Virus-Scanned: by amavisd-new (PLD-Linux) at wmid.amu.edu.pl Original-Received: from atos.wmid.amu.edu.pl ([127.0.0.1]) by localhost (atos.wmid.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id OSoWjA2z0F0F for ; Sat, 10 Jan 2009 19:31:19 +0100 (CET) Original-Received: by atos.wmid.amu.edu.pl (Postfix, from userid 3884) id 2BC121011F57; Sat, 10 Jan 2009 19:31:19 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i 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:46707 Archived-At: 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=3D{right,left},distance=3D3pt] > \NC 2x + 3y \MC{} =3D 10 \NR > \NC 3x + 2y \MC{} =3D 5 \NR > \stopcases > \stopformula > = > \startformula > \startmatrix[align=3D{right,left},distance=3D3pt,left=3D{\left\{}, = > right=3D{\right.}] > \NC 2x + 3y \NC{} =3D 10 \NR > \NC 3x + 2y \NC{} =3D 5 \NR > \stopmatrix > \stopformula > = > \stoptext Both work just fine, but with distance=3D0pt 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. > 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... > = > Aditya Thank you! -- = Marcin Borkowski (http://mbork.pl) Nie mam w r=EAku miecza, ani karabinu, stoj=EA nieuzbrojony pod murami Babi= lonu. Wzywam pomocy Ducha - Duch przychodzi w ogniu! Wok=F3=B3 zostaj=B1 tylko gruzy Babilonu! (Korze=F1 Z Kraju Melchizedeka) ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________