I receive the a Reference "LastPage" undefined error when trying to compile a document with this syntax:
\fancyfoot[R]{\thepage/\pageref{LastPage}}
What is necesarry to prevent this error? I'm using TeXworks Version 0.4.3 (MiKTeX 2.9) and pdfLaTeX.
lastpage? – nickpapior Jan 20 '12 at 17:18