[texhax] turning off hyperlink in LastPage

Toby Cubitt tsc25 at cantab.net
Thu Aug 6 13:01:53 CEST 2009


George Georgalis wrote:
> Hi, I've been using the LastPage package with success
> to reference the total number of pages in a footer.
> 
> \usepackage{lastpage}
> ...
> \fancyfoot[R]{\slshape {\thepage~of~\pageref{LastPage}}}
> 
> I don't see a need to hyper link to the end of the document
> though and cannot see anyway to turn it off. Suggestions?

Use \pageref* instead, which suppresses the hyperlink. (FYI, \ref* does
the same for references.)

Toby


More information about the texhax mailing list