1

Possible Duplicate:
Why does an environment’s label have to appear after the caption?

For convenience of readers, Table~\ref{table_abbreviation} lists the abbreviations and their full meaning, as used in this report.

\begin{table}[ht]
\label{table_abbreviation}
\caption{Abbreviations used in this paper}
\centering
\begin{tabular}{l l}
\hline
Abbreviations & Full definition \\
\hline
P2P & Peer-to-peer  \\ 
DDM & Distributed Data Mining  \\
[1ex]
\hline
\end{tabular}
\end{table}

The above is a latex code portion from a document I am writing. I am expecting ~\ref{table_abbreviation} to give the same number as shown next to the caption of table. However, while the caption says "Table 1", in the content it is referred as 1.3. Perhaps, the numbering would be clear if I give the whole code, but I was under the impression, the numbering will be consistent no matter where they are used.

David Carlisle
  • 757,742

1 Answers1

2

you need \label after \caption.

(this was the type example of question that i wanted to nail with www.tex.ac.uk:/faq ...)

Mico
  • 506,678
wasteofspace
  • 5,352