From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39501 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: A few questions about aligned maths Date: Fri, 14 Mar 2008 08:13:39 +0100 Message-ID: <20080314081339.495b1193.schuster.wolfgang@googlemail.com> References: <200803131916.37335.morgan.brassel@free.fr> 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: ger.gmane.org 1205480147 29840 80.91.229.12 (14 Mar 2008 07:35:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2008 07:35:47 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 14 08:36:14 2008 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 1Ja4Sb-0001jA-SI for gctc-ntg-context-518@m.gmane.org; Fri, 14 Mar 2008 08:36:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 55FBA1FC36; Fri, 14 Mar 2008 08:35:37 +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 23062-04-7; Fri, 14 Mar 2008 08:34:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FB6A1FBE8; Fri, 14 Mar 2008 08:34:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 828F51FBC9 for ; Fri, 14 Mar 2008 08:34:56 +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 23060-08-15 for ; Fri, 14 Mar 2008 08:34:21 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by ronja.ntg.nl (Postfix) with ESMTP id E50F41FBE8 for ; Fri, 14 Mar 2008 08:34:21 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so3239721fga.8 for ; Fri, 14 Mar 2008 00:34:21 -0700 (PDT) Original-Received: by 10.82.175.17 with SMTP id x17mr25661299bue.19.1205480061264; Fri, 14 Mar 2008 00:34:21 -0700 (PDT) Original-Received: from rover ( [91.41.102.126]) by mx.google.com with ESMTPS id b17sm1268270fka.4.2008.03.14.00.34.18 (version=SSLv3 cipher=OTHER); Fri, 14 Mar 2008 00:34:19 -0700 (PDT) In-Reply-To: X-Mailer: Sylpheed 2.5.0beta1 (GTK+ 2.10.14; i686-pc-mingw32) 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:39501 Archived-At: On Thu, 13 Mar 2008 19:48:55 -0400 (EDT) Aditya Mahajan wrote: > On Thu, 13 Mar 2008, Morgan Brassel wrote: > > > Concerning multline, I only read the specification given in amsldoc.pdf: > > "3.3 Split equations without alignment". Multline does not support alignment, > > so you can't put '&' inside it, only '\\'. All it does is cut the equation > > into several lines: the first is left aligned, the last is right aligned, and > > all the intermediate are centered. I don't if this is sufficient as an > > explanation. Please let me know if I can help or test. And thank you for your > > time! > > So, will this user interface be enough: > > \startformula \startmultline > \NC line 1 \FR > \NC line 2 \MR > \NC line 3 \LR > \stopmultline \stopformula I would change myself the name for the environment from multline to multiline, we don't have to rely on the short command names as old TeX packages did for many macros. > Lines with \FR are flush left, lines with \MR are centered, and lines with > \LR are right flushed. (First row, middle row, last row; as in tables). > multline also has \pushleft and \pushright with go against the ConTeXt way > of things. > > It is also possible to just have \NR at each row, and let ConTeXt figure > out the correct flushing. That will involve a two-pass algorithm, and I > will give that a try. I think you should use NR at the end of a line and not different commands for the first, the last and all other lines. You could change the alignment of each line with \NC[align=...], this will fit to the normal commands for tables. > The other thing is placement of equation numbers. It is easy to implement > multline so that equation number is always centered. I am not sure if the > current ConTeXt mechanism allows for equation number to be placed on the > bottom (similar to tbtags options). Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________