Possible Duplicate:
Figure numbers using the section number
I have a figure inside a section, like:
\subsection{Something}
\begin{figure}[htbp]
\centering
\includegraphics[height=2in]{pictures/mathematic/vn_vicinity.pdf}
\hspace{1.5in}\parbox{5in}{\caption{Representación gráfica Vecindad de Von Neumann}}
\label{fig:VecindadVonNeumann}
\end{figure}
When I want to reference the figure:
This is my all awesome figure \ref{fig:VecindadVonNeumann}
I get the reference number from the section, not from the figure itself.
This is my section number

This is my Figure, shows 2.1 as number

This is the number that I'm getting in my \ref

Is this normal ? Shouldn't I get 2.1 in my reference ?
\labelcommand inside the\parbox; however, customizing the appearance of the caption is best done with thecaptionpackage. – egreg Sep 25 '12 at 16:53