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\s...@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{}## \s...@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 <adit...@umich.edu> 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
___________________________________________________________________________________