TeXShop"you can't use \eqno in math mode" in Texlive 2009

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Post Reply
irixmark
Posts: 2
Joined: Mon Feb 08, 2010 1:58 pm

"you can't use \eqno in math mode" in Texlive 2009

Post by irixmark »

Hi,

I've just updated Texshop to 2.30 and installed Texlive 2009 at the same time. Suddenly, I'm getting the dreaded

Code: Select all

you can't use \eqno in math mode
error for a very simple equation:

\begin{equation}\label{pdf}
g_i(t)=\lambda_{i}e^{-\lambda_{t}, t > 0
\end{equation}

Also, everything after the comma goes into the exponent, which is not what I wanted.

What could be causing this? Later in the same document, more complicated equations and subequations are numbered without a hitch. With Texshop 2.29 and Texlive 2008 it worked fine.

Packages used:
\usepackage{latexsym,graphicx,multicol,topcapt,amsmath,setspace,geometry,color,booktabs}

Cheers,

Mark

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

"you can't use \eqno in math mode" in Texlive 2009

Post by gmedina »

Hi,
irixmark wrote:...
\begin{equation}\label{pdf}
g_i(t)=\lambda_{i}e^{-\lambda_{t}, t > 0
\end{equation}
...
What could be causing this?
Perhaps the missing closing brace? Try with

Code: Select all

\begin{equation}\label{pdf}
  g_i(t)=\lambda_{i}e^{-\lambda_{t}}, t > 0
\end{equation}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
irixmark
Posts: 2
Joined: Mon Feb 08, 2010 1:58 pm

Re: "you can't use \eqno in math mode" in Texlive 2009

Post by irixmark »

Oh yes, of course. :oops: Thanks so much for pointing it out. My only consolation is that Texlive 2008 swallowed it without complaining.

--Mark
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

"you can't use \eqno in math mode" in Texlive 2009

Post by gmedina »

irixmark wrote:Oh yes, of course. :oops: Thanks so much for pointing it out...
You're welcome.
irixmark wrote:...My only consolation is that Texlive 2008 swallowed it without complaining.
really?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

"you can't use \eqno in math mode" in Texlive 2009

Post by phi »

Sometimes it's helpful to look at more than one error message at a time. The first message is not really helpful:

Code: Select all

ERROR: You can't use `\eqno' in math mode.

--- TeX said ---
\endequation ->\eqno 
                     \hbox {\@eqnnum }$$\@ignoretrue 
l.6 \end{equation}
                  
--- HELP ---
From the .log file...

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
But the second error message is more helpful:

Code: Select all

ERROR: Missing } inserted.

--- TeX said ---
<inserted text> 
                }
l.6 \end{equation}
                  
--- HELP ---
TeX has become confused. The position indicated by the error locator
is probably beyond the point where the incorrect input is.
Post Reply