# Equation number displaying problem

I used \eqref to reference two different equations (\eqref{eq1} and \eqref{eq2}) but it displays the same strange shape as shown below in the image. The equation numbers are 1 & 2, any help?

• Please add a minimal working example (MWE) that illustrates your problem in your future posts. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – hpesoj626 Apr 10 '13 at 4:19

You should define the label within the equation (or align) environment, not outside:

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\renewcommand{\thesection}{\Roman{section}}
\begin{document}
\section{A section}
$$f(x)=ax^2+bx+c$$
\label{eqn:first}
See~\eqref{eqn:first} and~\eqref{eqn:second}.
$$f(x)=ax^2+bx+c$$\label{eqn:second}
\end{document}

• Technically only the second label is within the environment in this case ;-) – Mythio Apr 10 '13 at 5:45
• @Mythio: That's true. The example is meant to showcase the difference by both duplicating the OP's output (even though he did not provide some example code/MWE) as well as showing the intended usage. – Werner Apr 10 '13 at 6:12