From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46866 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: A few questions about aligned maths Date: Mon, 19 Jan 2009 09:52:27 -0500 (EST) Message-ID: References: <47E7802D.20304@wxs.nl> <7a884c7c0901172056o728ed92q896102df2bf26709@mail.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: ger.gmane.org 1232387386 10541 80.91.229.12 (19 Jan 2009 17:49:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2009 17:49:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 19 18:50:57 2009 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 1LOyGf-0001Yj-9A for gctc-ntg-context-518@m.gmane.org; Mon, 19 Jan 2009 18:50:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 640131FBB8; Mon, 19 Jan 2009 18:49:14 +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 31213-01-19; Mon, 19 Jan 2009 18:48:09 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6593E1FD48; Mon, 19 Jan 2009 18:43:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A19411FCE5 for ; Mon, 19 Jan 2009 18:43:18 +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 31526-01-17 for ; Mon, 19 Jan 2009 18:42:13 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 4BCED1FD79 for ; Mon, 19 Jan 2009 15:53:22 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0JErJ2I007474 for ; Mon, 19 Jan 2009 15:53:21 +0100 Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY tombraider.mr.itd.umich.edu ID 497493DE.363A7.26127 ; 19 Jan 2009 09:53:18 -0500 In-Reply-To: <7a884c7c0901172056o728ed92q896102df2bf26709@mail.gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.161; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 167507700 - 27197a86768f X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46866 Archived-At: This can be corrected by changing the \vbox in the definition of \startmathlines to \vtop. This can be made configurable by adding a location key. Here is a complete example \unprotect \def\startmathlines {\def\stop@math{$} \def\NC{} \def\NR{\def\NC{\cr}} % Hack for number. Should be done by measuring the width of the number \scratchdimen\dimexpr\displaywidth-4em \relax \vbox \bgroup \halign\bgroup \hbox to \scratchdimen {\hfil \strut $\mathsurround\zeropoint\displaystyle{}## \stop@math \hfil}% \crcr \hfilneg} \def\stopmathlines {\hfilneg \crcr \egroup \egroup} \protect Once I understand the new experimental code, I will start playing around with aligned math support. Aditya On Sat, 17 Jan 2009, Dave wrote: > Is there any progress on this? I notice it is not yet in the core. I'm in > need of an AMSL split-like environment but the above doesn't work entirely > as expected. Below is an example. > Any ideas? > Thanks, Dave > > \placeformula > \startformula \startalign > \NC \sigma_{L_s}^2 > \NC= E\left\{ \eps_L^2 \right\} \NR > \NC \NC= \startmathlines > \NC E\left\{ \left( \frac{1}{L_{\ref}^2(\nu)} > > \Re{\eps_{\pth}+\eps_{\off}}\,\cos\left(\phi(\nu)\right) + > > \Im{\eps_{\pth}+\eps_{\off}}\,\sin\left(\phi(\nu)\right) > \right)^2 \right\} - \NR > \NC E\left\{ \frac{2}{L_{\ref}^2(\nu)} \, > \frac{L_{\pth}(\nu)}{L_{\ref}(\nu)} > \left( > \Re{\eps_{\pth} + > \eps_{\off}}\,\cos\left(\phi(\nu)\right) + > \Im{\eps_{\pth} + > \eps_{\off}}\,\sin\left(\phi(\nu)\right) > \right) \NR > \NC \left( > \Re{\eps_{\ref} + > \eps_{\off}}\,\cos\left(\phi(\nu)\right) + > \Im{\eps_{\ref} + > \eps_{\off}}\,\sin\left(\phi(\nu)\right) + > \right) > \right\} + \NR > \NC E\left\{ \frac{1}{L_{\ref}^2(\nu)} \, > \frac{L_{\pth}^2(\nu)}{L_{\ref}^2(\nu)} > \left( > \Re{\eps_{\ref} + > \eps_{\off}}\,\cos\left(\phi(\nu)\right) + > \Im{\eps_{\ref} + > \eps_{\off}}\,\sin\left(\phi(\nu)\right) > \right)^2 \right\} \NR > \stopmathlines \NR > \NC \NC= \frac{1}{L_{\ref}^2} \, \left( \sigma_{\pth}^2 + > \left(\frac{L_{\pth}}{L_{\ref}} - 1\right)^2 \sigma_{\off}^2 + > \left(\frac{L_{\pth}}{L_{\ref}}\right)^2 \sigma_{\ref}^2 \right) > \NR[eq:SpcTransVarC2] > \stopalign \stopformula > > > On Mon, Mar 24, 2008 at 7:17 AM, Aditya Mahajan wrote: > >> On Mon, 24 Mar 2008, Hans Hagen wrote: >> >>> Morgan Brassel wrote: >>> >>>> Sorry that I can't help you with the implementation, Aditya... I just >> want >>>> to confirm that your new macro perfectly fits my needs. I hope it will >>>> make it into the core, it really is useful! >>> >>> once aditya is confident that it makes sense and works as expected it >>> will probably end up in the core, but as usual i'll wait till he sends >>> me an updated core file >> >> It will be a while before I am able to get all the bells and whistles >> (take care of where the formula number is to be placed, and how how the >> formula is to be aligned). >> >> Aditya >> >> ___________________________________________________________________________________ >> 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 >> >> ___________________________________________________________________________________ >> > ___________________________________________________________________________________ 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 ___________________________________________________________________________________