Possible Duplicate:
Where to put the \label on a figure environment?
I've got the table numberin with sections:
\numberwithin{table}{section}
The following table is 2.1. for example:
\begin{table}
...
\label{thelabel}
\end{table}
But when I reference this table using \ref{thelabel} I only get the 2, not the whole table number.
How to get the label and the table number right?
\labelafter\caption? Yes, you need\captionin order to be able to reference it properly. – Werner Dec 15 '11 at 15:26