From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26124 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Substack in Context Date: Wed, 22 Feb 2006 06:00:31 -0500 (EST) Message-ID: References: <43DB4918.8060505@elvenkind.com> <43DB5B1B.50902@elvenkind.com> <43DB75C0.8090201@seznam.cz> 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 1140606068 19044 80.91.229.2 (22 Feb 2006 11:01:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2006 11:01:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 22 12:01:05 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 1FBrjl-0006ZC-6t for gctc-ntg-context-518@m.gmane.org; Wed, 22 Feb 2006 12:00:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77F6F12775; Wed, 22 Feb 2006 12:00:48 +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 16824-02-6; Wed, 22 Feb 2006 12:00:43 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8847812783; Wed, 22 Feb 2006 12:00:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0B1712783 for ; Wed, 22 Feb 2006 12:00:41 +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 16824-02-5 for ; Wed, 22 Feb 2006 12:00:40 +0100 (CET) Original-Received: from playinggod.mr.itd.umich.edu (playinggod.mr.itd.umich.edu [141.211.14.79]) by ronja.ntg.nl (Postfix) with SMTP id 6312912775 for ; Wed, 22 Feb 2006 12:00:39 +0100 (CET) Original-Received: from aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) by playinggod.mr.itd.umich.edu (smtp) with ESMTP id k1MB0Xt6009333 for ; Wed, 22 Feb 2006 06:00:38 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <43DB75C0.8090201@seznam.cz> 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:26124 Archived-At: <--- On Jan 28, Taco Hoekwater wrote ---> > Aditya Mahajan wrote: >>> The definition from m-newmat is at least partly superceded by the >>> new core math definitions Hans added last week, so a new implementation >>> would be better. >> >> Can you suggest something? > > Like this maybe? > > \def\substack#1% > {\begingroup > \let\\\cr > \startmathmatrix #1\stopmathmatrix > \endgroup} > > Probably needs a bit of tweaking to make it look better > (perhaps a [strut=no] parameter?). > <--- On Jan 28, Vit Zyka wrote ---> > What about use math primitive \atop: > > \def\substack#1% > {\begingroup > \let\\\atop > #1 > \endgroup} > Sorry for not getting back for almost a month. Both suggestions work only partially. Consider \startmathformula \sum_{% \startmathmatrix i = 1 \NR i \neq n \NR i \neq m \stopmathmatrix }a_i \stopformula As Taco mentioned, the spacing is bad. \atop gives correct spacing but you need to put subscripts in groups of two. \startformula \sum_{ {i = 1 \atop i \neq n}\atop i \neq m } a_i \stopformula Moreover, the font size is incorrect in both cases. Compare with the size of the subscript in \sum_{i = 1}. Any suggestions? Aditya