From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36210 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Math align question Date: Sun, 26 Aug 2007 15:39:41 -0400 (EDT) Message-ID: References: <46D056DD.5030807@tiscali.nl> <46D19B8C.9040107@tiscali.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188157210 16652 80.91.229.12 (26 Aug 2007 19:40:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2007 19:40:10 +0000 (UTC) Cc: mailing list for ConTeXt users To: WN Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 26 21:40:07 2007 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 1IPNxr-0001KL-VA for gctc-ntg-context-518@m.gmane.org; Sun, 26 Aug 2007 21:40:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7838820167; Sun, 26 Aug 2007 21:40:01 +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 01281-02-7; Sun, 26 Aug 2007 21:39:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 43612200D3; Sun, 26 Aug 2007 21:39:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40A2A2008D for ; Sun, 26 Aug 2007 21:39:51 +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 01281-02-6 for ; Sun, 26 Aug 2007 21:39:47 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id 9BFE82008A for ; Sun, 26 Aug 2007 21:39:46 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (adsl-68-79-96-128.dsl.sfldmi.ameritech.net [68.79.96.128]) BY tombraider.mr.itd.umich.edu ID 46D1D6FD.AF8A6.31705 ; 26 Aug 2007 15:39:42 -0400 In-Reply-To: <46D19B8C.9040107@tiscali.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36210 Archived-At: On Sun, 26 Aug 2007, WN wrote: > Aditya, > > This confuses me, I thought when using 3 columns I have to set n=3 otherwise > I get errors about extra tab found etc. > However doing as you suggested, seems to work. This is due to the m key. m=2 tells context that there are two blocks of equations. n=2 says that each block has two columns. So, in all there should be n*m = 4 \NC in the equation (I had only put three, which led to the wrong equation number alignment). > Then another question, the formula numbering is not aligned with the other > formula's in my text > like in the code below. How can I force the sub formula numbering to be right > aligned ? See above: This was due to mistake in my code. This works. (Though it will be nice if such mistakes do not cause these kinds of errors) \def\ms{\,} \starttext \placeformula[calcb-chapter4-eqn2] \startformula f(x) = \sum_{n = - \infty}^{+\infty} c_{n} e^{\displaystyle i n \frac{\pi}{L} x} \quad \text{,} \quad c_{n} = \frac{1}{2L} \int\limits_{-L}^{L} f(x) \ms e^{- \displaystyle in\frac{\pi}{L} x } dx \stopformula Formula number is not right aligned with the previous formula \placesubformula \startformula \startalign[n=2,m=2,distance=2em] %\startalign[n=3] \NC f(x) \NC = \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms e^{i y x} \ms dy \NC\NC (x \in \reals) \NR[calcb-chapter4-eqn5:i][i] \NC g(y) \NC = \int\limits_{-\infty}^{+\infty} f(x) \ms e^{-i y x} d x \NC\NC ( y \in \reals) \NR[calcb-chapter4-eqn5:ii][ii] \NC \int\limits_{-\infty}^{+\infty} |f(x)|^{2} dx \NC = \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} \Big| g(y) \Big|^{2} \ms d y \NC\NC \quad \NR[calcb-chapter4-eqn5:iii][iii] \stopalign \stopformula \stoptext Do you know about subformulas? For example, \setupsubformulas[conversion=romannumerals] \def\ms{\,} \starttext \startsubformulas[calcb-chapter-4-eqn5] \placeformula \startformula \startalign[n=2,m=2,distance=2em] \NC f(x) \EQ \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms e^{i y x} \ms dy \NC\NC (x \in \reals) \NR[calcb-chapter4-eqn5:i] \NC g(y) \EQ \int\limits_{-\infty}^{+\infty} f(x) \ms e^{-i y x} d x \NC\NC ( y \in \reals) \NR[calcb-chapter4-eqn5:ii] \NC \int\limits_{-\infty}^{+\infty} |f(x)|^{2} dx \EQ \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} \Big| g(y) \Big|^{2} \ms d y \NC\NC \NR[calcb-chapter4-eqn5:iii] \stopalign \stopformula \stopsubformulas You can also refer to the whole equation~\in[calcb-chapter-4-eqn5], or an individual number~\in[calcb-chapter4-eqn5:iii]. \stoptext BTW, why no \ms before dx, and a \ms before dy? 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 ___________________________________________________________________________________