1

This is the error message I get for the line \end{equation}

You can't use `\eqno' in vertical mode.
\endequation ->\eqno 
                     \hbox {\@eqnnum }$$\@ignoretrue 
l.19 \end{equation}

Why is it happening?

1
  • 4
    Welcome to TeX.SX! It's impossible to say without seeing the code that generates the error.
    – egreg
    Sep 19, 2017 at 22:09

1 Answer 1

1

You have some code equivalent to

\documentclass{article}

\begin{document}


\begin{equation}
1=2  
$$

\end{equation}

\end{document}

You can not have $$ or a blank line inside the equation.

As above it produces

! You can't use `\eqno' in vertical mode.
\endequation ->\eqno 
                     \hbox {\@eqnnum }$$\@ignoretrue 
l.10 \end{equation}

Delete the $$ and blank line

\documentclass{article}

\begin{document}


\begin{equation}
1=2  
\end{equation}

\end{document}

runs without error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .