From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46867 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Math align with \startcases Date: Mon, 19 Jan 2009 09:38:33 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-324382950-1232375915=:4250" X-Trace: ger.gmane.org 1232387573 11285 80.91.229.12 (19 Jan 2009 17:52:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2009 17:52:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 19 18:54:05 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 1LOyK5-0002zu-GR for gctc-ntg-context-518@m.gmane.org; Mon, 19 Jan 2009 18:54:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 58CDB1FC1B; Mon, 19 Jan 2009 18:52:46 +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 03589-02; Mon, 19 Jan 2009 18:52:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92BC21FBF9; Mon, 19 Jan 2009 18:40:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A73E1FBCB for ; Mon, 19 Jan 2009 18:40:08 +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 31213-01-9 for ; Mon, 19 Jan 2009 18:38:52 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 2753C1FBF9 for ; Mon, 19 Jan 2009 15:39:29 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0JEdPg1017663 for ; Mon, 19 Jan 2009 15:39:28 +0100 Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY hellskitchen.mr.itd.umich.edu ID 4974909C.7B223.7154 ; 19 Jan 2009 09:39:24 -0500 In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 167497351 - 559e33ba7738 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:46867 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-324382950-1232375915=:4250 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 19 Jan 2009, Otared Kavian wrote: > Hi everyone, > > This question is primarily intended for Aditya=85 but I guess other fello= ws on=20 > the list can also help me solve the following alignment problem: > Is it possible to have an alignment like the rsult of the following with= =20 > \startcases...\stopcases? > > \starttext > > \startformula > \startmatrix[align=3D{right,left,right},distance=3D3pt,left=3D{\left\{},= =20 > right=3D{\right.}] > \NC -\Delta u + g(u) \NC{} =3D f \NC \quad\mbox{in } \Omega\NR > \NC \displaystyle {\partial u \over \partial {\bf n} } \NC{} =3D h(u) \N= C=20 > \quad\mbox{on } \partial\Omega \NR > \stopmatrix > \stopformula > > \stoptext > > Actually I used to have such alignments with the following structure (in = good=20 > old plain TeX...): > > \starttext > > \startformula > \cases{ > \eqalign{ > -\Delta u + g(u) &=3D f \cr > \displaystyle {\partial u \over \partial {\bf n} } &=3D h(u) \cr > } \quad \eqalign{ > &\hbox{in } \Omega \cr > &\vphantom{{\partial u \over \partial {\bf n} }} \hbox{on } \partial\Omeg= a=20 > \cr > } > } > \stopformula > > \stoptext > > (which gives approximately the same result as the first example above, bu= t=20 > clearly the math-alignment structure set up by Aditya and Hans is much mo= re=20 > elegant. (Although I prefer the vertical distance between the lines obtai= ned=20 > with my plain TeX structure: by the way is it possible to fine tune such= =20 > things in ConTeXt). > So my question is: whether one can use \startcases ...\stopcases instead = of=20 > \startmatrix ... \stopmatrix in order to obtain the result of the plain T= eX=20 > example? No, but there is not much difference between cases and matrix. Consider: \definemathmatrix[alignedcase] [align=3D{right,left,right},distance=3D3pt,left=3D{\left\{}, right=3D{\righ= t.},style=3D\displaystyle] \starttext \startformula \startalignedcase \NC -\Delta u + g(u) \NC{} =3D f \NC \quad\mbox{in } \Omega\NR \NC {\partial u \over \partial {\bf n} } \NC{} =3D h(u) \NC \quad\mbox{o= n=20 } \partial\Omega \NR \stopalignedcase \stopformula Aditya --8323328-324382950-1232375915=:4250 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-324382950-1232375915=:4250--