Hi
I would like to have in the header the pagenumber and the total number
of pages in the header in the format" page n of m". In the fancyheader
manual I have found that I have to use the package "lastpage" so I've
put in the preamble:
\usepackage{lastpage}
\fancyhf{}
\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}
The result I get is: 2 of ?? (on page 2 for instance).
I don't get any error messages but it seems that it is unknown how many
pages the document has. How can I solve this?
Regards
Bart