From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55192 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Math Alignment - start equation at left margin Date: Tue, 15 Dec 2009 06:41:41 -0500 (EST) Message-ID: References: <3b4b12310911291545y46bbbe06x386fe14c6dc7e333@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 1260877370 30996 80.91.229.12 (15 Dec 2009 11:42:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Dec 2009 11:42:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 15 12:42:34 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NKVml-0002Fb-4Q for gctc-ntg-context-518@m.gmane.org; Tue, 15 Dec 2009 12:41:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5514EC9BA5; Tue, 15 Dec 2009 12:41:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Wzx8J5IFc4+c; Tue, 15 Dec 2009 12:41:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3999BC9BA6; Tue, 15 Dec 2009 12:41:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3931FC9BA6 for ; Tue, 15 Dec 2009 12:41:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id T8Wbhw2qVxS1 for ; Tue, 15 Dec 2009 12:41:32 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by balder.ntg.nl (Postfix) with ESMTP id 59A24C9BA5 for ; Tue, 15 Dec 2009 12:41:31 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By hellskitchen.mr.itd.umich.edu ID 4B2775EA.B4FDF.26014 ; Authuser adityam; 15 Dec 2009 06:41:30 EST In-Reply-To: <3b4b12310911291545y46bbbe06x386fe14c6dc7e333@mail.gmail.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55192 Archived-At: On Sun, 29 Nov 2009, Curiouslearn wrote: > Hi, > Can someone please help with the alignment of the equation so that it > starts at left. I tried flushleft and other options (such as without > \NC \NR, with align=left etc.). None of them result in the equation > starting at the left margin. The equation is either placed in the > middle or is aligned to the right. I want it to start at the left. > > Thanks. > > \setuppapersize[letter][letter] > > \starttext > > \startformula\startalign[align={left}] > \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 > \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR > \stopalign\stopformula > > \stoptext The correct way to do this is \setupformulas[align=flushleft] \starttext \startformula a = b \stopformula \stoptext However, this does not work in MkIV due to a bug introduced in the splitting of mkii-mkiv files. math alignment works using commands \def\startinnermath {\getvalue{\e!start\??fm\formulaparameter\c!align}} \def\stopinnermath {\getvalue{\e!stop \??fm\formulaparameter\c!align}} which are defined in math-ali.mkiv. However, strc-mat.mkiv redefines these to \empty, so the simple math alignment does not work anymore. Hans: we need to either move these definitions from math-ali to strc-mat or remove \let\startinnermath\empty \let\stopinnermath \empty from strc-mat.mkiv 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________