From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25231 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: math align Date: Sun, 15 Jan 2006 22:31:13 -0500 (EST) Message-ID: References: <43CACEB2.7030708@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1137382302 11035 80.91.229.2 (16 Jan 2006 03:31:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2006 03:31:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 16 04:31:34 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1EyL5h-0002e8-7F for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jan 2006 04:31:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2401E127F2; Mon, 16 Jan 2006 04:31:32 +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 17168-05; Mon, 16 Jan 2006 04:31:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2CD4127CA; Mon, 16 Jan 2006 04:31:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D7B4C127CA for ; Mon, 16 Jan 2006 04:31:27 +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 17119-05 for ; Mon, 16 Jan 2006 04:31:26 +0100 (CET) Original-Received: from beyondborders.mr.itd.umich.edu (beyondborders.mr.itd.umich.edu [141.211.93.146]) by ronja.ntg.nl (Postfix) with SMTP id 393A512772 for ; Mon, 16 Jan 2006 04:31:25 +0100 (CET) Original-Received: from aditya.annarb01.mi.comcast.net (bgp996717bgs.nanarb01.mi.comcast.net [68.40.50.205]) by beyondborders.mr.itd.umich.edu (smtp) with ESMTP id k0G3VIA0004239 for ; Sun, 15 Jan 2006 22:31:23 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <43CACEB2.7030708@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:25231 Archived-At: <--- On Jan 15, Hans Hagen wrote ---> > Hi, > > Here a first attempts for a flexible alignment mechanism (i depend on taco > for the fine points of math typesetting since he's typeset \infty more > complex formulas than i have) > > (n=n_of_columns, m=n_of_pairs, so both requested multiple column features are > supported) Thanks a lot. I tested it with the little context math documents that I have and it works as expected. There is a minor bug. I thought that & ... \\ and \NC .. \NC .. \NR were equivalent, with the latter giving more configurability with respect to equation numbering and all. However, with multiple columns, \NC ... \NC does not work as expected. Consider \usemodule[math-ext] \starttext Three columns work correctly if I use \& \startbuffer \startformula \startalign[n=3] a &= b &= c \\ d &= e &= f \stopalign \stopformula \stopbuffer \typebuffer \getbuffer But they do not work if I use \type{\NC} \startbuffer \startformula \startalign[n=3] \NC a \NC= b \NC= c \NR \NC d \NC= e \NC= f \NR \stopalign \stopformula \stopbuffer \typebuffer \getbuffer \stoptext This takes care of most of the alignment and equation numbering in Context. With this, one should also be able to define \startstop split such that \placeformula \startformula \startsplit a &= b \\ &= c \stopsplit \stopformula comes out as a &= b &= c (1) But, my attempts to define such a startstop did not work. Can you suggest something? Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008