From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30122 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: New math feature requests Date: Tue, 8 Aug 2006 11:38:14 -0400 (EDT) Message-ID: References: <44D89DB4.2020503@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155051528 14700 80.91.229.2 (8 Aug 2006 15:38:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Aug 2006 15:38:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 08 17:38:43 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 1GATf7-0007PL-JS for gctc-ntg-context-518@m.gmane.org; Tue, 08 Aug 2006 17:38:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C463C1FDE4; Tue, 8 Aug 2006 17:38:32 +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 11284-04; Tue, 8 Aug 2006 17:38:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EA031FDD9; Tue, 8 Aug 2006 17:38:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D0EE1FDD9 for ; Tue, 8 Aug 2006 17:38:23 +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 11410-03-2 for ; Tue, 8 Aug 2006 17:38:18 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with SMTP id EA4E51FDD4 for ; Tue, 8 Aug 2006 17:38:17 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY tombraider.mr.itd.umich.edu ID 44D8AFE8.18A99.25841 ; 8 Aug 2006 11:38:16 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <44D89DB4.2020503@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30122 Archived-At: On Tue, 8 Aug 2006, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> >> 2. In amsmath, most of alignment constructs exist in two forms: outer >> and inner. The mathalignment implemented in core-mat.tex corresponds >> to outer alignment. The inner alignment is same as outer alignment, >> but is only as wide as necessay. The most common amsmath inner >> alignment constructs are aligned and gathered. It is easiest to >> explain by means of an example. Suppose I want to type >> >> a x + b y = c `\ >> } (simultaneous equations) >> d x + e y = f / >> , >> >> I want to be able to do >> >> \defineinnermathalignment[aligned][n=2,left={\left.},right={\right\}}] > > This sounds very close to \definemathmatrix, yes? It is, and my first thought was that this can be achieved using \definematrix (that is why the previous requests for location= and style=). However, all my attempts to use a matrix failed because: 1. Matrix does not "see" beyond the \NCs as align. Comapre the output of \startformula \startalign[n=2] \NC a \NC = bx + c \NR \NC \NC + ey \NR \stopalign \stopformula with \startformula \startmatrix[n=2,distance=0pt, style=\displaystyle] \NC a \NC = bx + c \NR \NC \NC + ey \NR \stopmatrix \stopformula The '+' in the second line comes out as a unary operator rather than a binary operator. This can be corrected by using \NC{}+ but should the user really know the ugly implementation details? 2. Matrix does not correct interline space. Compare \startformula \startalign[n=2] \NC f(x) \NC = \int_{-\infty}^{\infty} \phi(y-x) dy \NR \NC \NC = \sum_{i=-\infty}^{\infty} \hat phi(i-x) \NR \stopalign \stopformula with \startformula \startmatrix[n=2,distance=0pt, style=\displaystyle] \NC f(x) \NC = \int_{-\infty}^{\infty} \phi(y-x) dy \NR \NC \NC = \sum_{i=-\infty}^{\infty} \hat phi(i-x) \NR \stopmatrix \stopformula The two lines are too close. I thought that it might be easier to simply wrap the whole align around a hbox as these inner alignments need not break across pages. If matrix can be enhanced to take care of the above two requirements then matrix is fine. However, if I just want a matrix, then both above behaviours of the matrix are correct. I am not sure what kind of interface matrix should have to behave in both ways (the current matrix behaviour and the requested aligned behaviour). Aditya