Multi-line equation and placement of the number
Hello Context user, I'm trying to display a multi-line equation with a single number aligned with the last line. According to "The TeXbook" I should use \eqalignno{} for that. Unfortunately, this gobbles up the number. The other method of aligning th parts of my long equation (\eqalign) puts the number in the vertical center. How am I supposed to do this? Kind regards, Maarten Sneep The obligatory version info: ConTeXt ver: 2003.3.11 fmt: 2003.3.26 I found the following code, but I seriously do not understand this... %% from math-pln.tex in ${TEXMF}/tex/context/base \def\eqalignno#1% {\displ@y \tabskip\centering \halign to \displaywidth {\hfil$\@lign\displaystyle{##}$\tabskip\z@skip &$\@lign\displaystyle{{}##}$\hfil\tabskip\centering &\llap{$\@lign##$}\tabskip\z@skip\crcr #1\crcr}}
Hi, I am not sure of what you want. If you want something like this: aaa + bbb + ccc = eee + fff + ggg + hhh + iii + jjj + kkk + lll (formulanumber) you should write something like this: % Réf : http://ml-archives.mini.pw.edu.pl/ntg-context/msg06717.html % http://ml-archives.mini.pw.edu.pl/ntg-context/msg06720.html \placeformula \startformula \eqalignno{ aaa + bbb + ccc & = eee + fff + ggg & \cr & + hhh + iii + jjj & \cr & + kkk + lll & \formulanumber[eq:my-equation] \cr } \stopformula I hope it will help you. Seb Maarten Sneep wrote:
Hello Context user,
I'm trying to display a multi-line equation with a single number aligned with the last line. According to "The TeXbook" I should use \eqalignno{} for that. Unfortunately, this gobbles up the number. The other method of aligning th parts of my long equation (\eqalign) puts the number in the vertical center.
How am I supposed to do this?
Kind regards,
Maarten Sneep
The obligatory version info: ConTeXt ver: 2003.3.11 fmt: 2003.3.26
I found the following code, but I seriously do not understand this...
%% from math-pln.tex in ${TEXMF}/tex/context/base \def\eqalignno#1% {\displ@y \tabskip\centering \halign to \displaywidth {\hfil$\@lign\displaystyle{##}$\tabskip\z@skip &$\@lign\displaystyle{{}##}$\hfil\tabskip\centering &\llap{$\@lign##$}\tabskip\z@skip\crcr #1\crcr}}
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (2)
-
Maarten Sneep
-
Sebastian Rooks