The
\label
command defines a key that refers to the last generated a number (and the page it was generated on). For example, consider this:
Code: Select all
\section{Hello}
% lots o' text
\begin{table}
\label{mykey}
\caption{Caption text.}
% table contents
\end{table}
Using
\pageref{mykey}
would generate the page number of whatever page the "Hello" section happened to start on. It would NOT refer to the page on which the
\label
command appeared, nor would it refer to the label on which the table appeared unless you moved the
\label
AFTER the caption, since
\caption
generates a number!
If you want to refer to an arbitary page number, insert something like this:
Code: Select all
\newcounter{dummy}
\refstepcounter{dummy}
\label{mykey}
Now
\pageref{mykey}
and relatives will refer to the page on which the
\refstepcounter
command was issued.