% clara loeh
% 04/2012
% classical pageref example
\documentclass{article}

\pagenumbering{roman}

\def\punishment{Ich soll nicht abschreiben.}
\def\two#1{#1 #1}
\def\ten#1{\two{\two{\two{#1}}} \two{#1}}
\def\hundred#1{\ten{\ten{#1}}}

\begin{document}

1\clearpage2\clearpage3\clearpage
4\clearpage5\clearpage6\clearpage
7\clearpage8\clearpage
9

\hundred\punishment
\ten\punishment
\ten\punishment
\ten\punishment
{\Huge
fill fill fill f page~\pageref{magicpage}\label{magicpage}}

\end{document}
