[NTG-context] Problem with \leqalignno

Aditya Mahajan adityam at umich.edu
Sun Sep 11 03:19:32 CEST 2016


On Sun, 11 Sep 2016, Mingranina Gingranina wrote:

> Hello All,
>
> I am trying to compile the following example (from
> http://wiki.contextgarden.net/Math/Display) with context:
>
> \starttext
>
> \placeformula
> \startformula
> \leqalignno{c^2 &= a^2 + b^2  &\formulanumber{a} \cr
>           a^2 + b^2 &= c^2  &\subformulanumber{b} \cr
>           d^2 &= e^2        &\formulanumber\cr}
> \stopformula
>
> \stoptext
>
> Am I doing something wrong? Any help would be gratefully appreciated.

How about:

\setupformulas[location=left]
\starttext

\startsubformulas
\placeformula[+] \startformula \startalign
   \NC c^2 \EQ a^2 + b^2 \NR[+]
   \NC a^2 + b^2 \EQ c^2 \NR[+]
   \NC d^2 \EQ e^2 \NR
\stopalign \stopformula
\stopsubformulas

\stoptext

Aditya


More information about the ntg-context mailing list