I'm trying to enumerate my equations using this command:
\begin{equation}
w(H)\le (g^2-5g+10)/2
\end{equation}
I have this in the log:
! Missing $ inserted.
<inserted text>
$
l.1026 \end{equation}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Display math should end with $$.
<to be read again>
\endgroup
l.1026 \end{equation}
The `$' that I just saw supposedly matches a previous `$$'.
So I shall assume that you typed `$$' both times.
[21]...
I've already tried to put this $$ or $$$$ and nothing happens.
I need help.
Thanks
$$at the end of the line? – Manuel Jan 27 '15 at 22:38equationenvironment. – egreg Jan 27 '15 at 22:38\usepackage{amsmath}(and you should anyway), just add\numberwithin{equation}{section}just before\begin{document}. – egreg Jan 27 '15 at 22:43equation. See Documents with typical LaTeX errors. – Werner Jan 27 '15 at 22:54