* \subformulanumber no longer working
@ 2001-10-28 18:08 Tobias Burnus
2001-10-30 15:00 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Burnus @ 2001-10-28 18:08 UTC (permalink / raw)
Cc: Tobias Burnus, NTG-ConTeXt
Hi,
I have something like this:
--------------------------------
\placeformula
$$
\eqalignno{
h\nu &=E=c\frac{h}{\lambda}&\formulenummer{a}\cr
\Rightarrow \lambda &= c\frac{h}{\Delta E} = (247\pm3)~{\rm nm}
&\subformulenummer{b}\cr
\Rightarrow \nu &= \frac{\Delta E}{h} =
(1{,}21\pm0{,}02)10^{15}~{\rm Hz}
&\subformulenummer{c}\cr}
$$
\bye
---------------------------------
it was definitly working, but now it causes error messages.
If I remove the \placeformula (and replace the \[sub]formulanumber by ""
(so a, b and c remain)) everything works as expected.
Please send me a bug fix soon.
Tobias
PS: The error message is:
----------------------
! Missing $$ inserted.
<to be read again>
\floatrighteqo
<argument> \eqno
{\doformulenummer [][][]{}}
\doifelse ...\ifx \!!stringa \!!stringb #3\else #4
\fi
\dostopformula ->\doplaceformulanumber
\getvalue {\e!stop \getvalue
{\??fm \...
l.9 $$
----------------------
--
This above all: To thine own self be true / And it must follow as
the night the day / Thou canst not then be false to any man.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: \subformulanumber no longer working
2001-10-28 18:08 \subformulanumber no longer working Tobias Burnus
@ 2001-10-30 15:00 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-10-30 15:00 UTC (permalink / raw)
Cc: Tobias Burnus, NTG-ConTeXt
At 07:08 PM 10/28/2001 +0100, Tobias Burnus wrote:
>If I remove the \placeformula (and replace the \[sub]formulanumber by ""
>(so a, b and c remain)) everything works as expected.
>
>Please send me a bug fix soon.
This took me a while to track down (thanks to fuzzy tex messages):
%D We need a hook into the plain math alignment macros
%D
%D \starttypen
%D \displaylines
%D \eqalignno
%D \eqalignno
%D \stoptypen
%D
%D Otherwise we get a missing \type {$$} error reported.
\def\resetdisplaymatheq
{\let\normalleqno\relax \let\leqno\relax
\let\normalreqno\relax \let\eqno \relax
\let\doplaceformulanumber\relax}
\let\normaldispl@y\displ@y
\def\displ@y{\resetdisplaymatheq\normaldispl@y}
This can go into core-mat.tex (this extends a plain macro)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-30 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-28 18:08 \subformulanumber no longer working Tobias Burnus
2001-10-30 15:00 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).