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 : [email protected] / 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
___________________________________________________________________________________

Reply via email to