From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57114 Path: news.gmane.org!not-for-mail From: Mehdi Omidali Newsgroups: gmane.comp.tex.context Subject: Re: alignment explanation Date: Mon, 15 Mar 2010 12:02:45 +0330 Message-ID: <4B9DF0AD.4030603@gmail.com> References: <82E06E33-9DB6-4CC7-B109-23D65A0B7DCE@uva.nl> <4B9D5CBC.3020008@gmail.com> 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: dough.gmane.org 1268641985 18068 80.91.229.12 (15 Mar 2010 08:33:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Mar 2010 08:33:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 15 09:33:01 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr5jQ-0006Pe-Rr for gctc-ntg-context-518@m.gmane.org; Mon, 15 Mar 2010 09:33:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FFF1C9DDF; Mon, 15 Mar 2010 09:33:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jM3tU6uQlPbF; Mon, 15 Mar 2010 09:32:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 111ADC9C3D; Mon, 15 Mar 2010 09:32:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BAF4AC9C3D for ; Mon, 15 Mar 2010 09:32:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F99rybhmyNiS for ; Mon, 15 Mar 2010 09:32:44 +0100 (CET) Original-Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by balder.ntg.nl (Postfix) with ESMTP id 30F5EC9BD0 for ; Mon, 15 Mar 2010 09:32:43 +0100 (CET) Original-Received: by bwz28 with SMTP id 28so2729875bwz.34 for ; Mon, 15 Mar 2010 01:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=mJWClYjKt8UjgeGccaBAyn2UazUj//9mAeDXXJmTBL0=; b=eUO7LtVS6M29EOFWq9T6v/+AFmA/pY0JH2dDd/Y+vlPN9hDG2j/cZeJYtuC9yHRRBP VGa05OVXWKHQF9ulgKDVxbZ6g/IIuV3NgqBzHniMv3c6J5Fpqz3EWzXrajdk9PNkNrIs tx4sq08sySYSirjqDtFItbtA58muUGn5sz9C8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=m5K4HleGNOCDUSDqQ3Pp6jES2Z0i2DyBkwEFEZahnxIm7mGTZ20maSO3dfA+GmMg9u duhDNIkuwZHp+TwnlCIyGpAeq8y2avvhH0GwJk0jnlB1YZF4lQSXaWJT2xURCdQmYDt0 UMF3JpBNugGzKGBRT8FN179NdKnU40SabS73s= Original-Received: by 10.204.140.67 with SMTP id h3mr1094306bku.137.1268641963523; Mon, 15 Mar 2010 01:32:43 -0700 (PDT) Original-Received: from [192.168.154.116] ([85.185.240.5]) by mx.google.com with ESMTPS id g18sm20099206bkw.1.2010.03.15.01.32.40 (version=SSLv3 cipher=RC4-MD5); Mon, 15 Mar 2010 01:32:42 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:57114 Archived-At: On 3/15/2010 2:21 AM, Aditya Mahajan wrote: > On Mon, 15 Mar 2010, Mehdi Omidali wrote: > > >> Hi, >> Finally, after reading source code of math-ali.mkiv, I found the best way to >> typeset my multiline equation as follows >> >> \starttext >> \placeformula >> >> \startformula >> >> \startalign[n=3] >> > This means that you must have three "columns" in each line > > > >> \NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1] >> >> \NC\NC = w^2 \NC + u^2\NC \text{(by \in{Equation}[eq:2])} \cr >> > This has 4 columns. You do not get an error message because you use \cr > instead of \NR. That also messes up the alignment of the next equation. > >> but I don't know what is going on here. Exactly, eq:2 and eq:3 has the same >> output but they can not be interchanged. Can someone explain this code? >> > This is how I would do this. > > \placeformula \startformula \startalign[n=3] > \NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1] > \NC \NC = w^2 + u^2 \NC \text{(by \in{Equation}[eq:2])} \NR > \NC \NC \quad + v^2 + r^2 \NC \NR[eq:2] > \NC \NC \quad + v^2 + r^2 \NC \NR[eq:3] > \NC \NC = v^2 + r^2 \NC \NR[eq:4] > \stopalign \stopformula > > Aditya > Thanks, but your output is not the same as mine. The comment "by Equation 2" must be right aligned exactly where formula number is. Also I don't like manual alignment like \quad. AMS-TEX provide commands for automatic alignment. It would be nice if context supports that too. ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________