Reputation: 15
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*} $ f(x) = x^2$
\end{equation*}
\end{document}
#And this is the error:
! Display math should end with $$.
l.11 $
?
Upvotes: 0
Views: 888
Reputation: 462
Remove the $ signs from the line with your equation in it.
It should read
\begin{equation*} f(x) = x^2
I think.
Upvotes: 0
Reputation: 2243
The equation environment automatically sets math mode. No need to place additonal dollar signs.
Upvotes: 0