[OS X TeX] labels for page numbers

Alex Scorpan scorpan at gmail.com
Sat Dec 2 12:53:09 EST 2006


On Dec 2, 2006, at 10:06 AM, David Oliver wrote:

> Suppose one has a theorem (using either the theorem or AMS theorem  
> packages) and one wants to refer later in the document to the page  
> on which the theorem appears. Is there a way to attach a label to  
> the theorem so the page reference appearing later via the label is  
> automatically updated as the content of the document evolves? Any  
> other procedure to achieve this result?

Why, \pageref does just that.


---


\begin{theorem}
	\label{greenmoon}
If the moon is green,
it is made out of cheese.
\end{theorem}

\begin{proof}
As the moon is not green,
the conclusion follows.
\end{proof}

...

It is now time to use the celebrated
Green Moon Theorem, stated back
on page \pageref{greenmoon}.
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list