Thursday, July 24, 2014

Latex 'pdfpagelabels' turned off when using Hyperref

I received the following error when using ACM's sig-alternate.cls style file and using the PDFLatex command.

Error:
Package hyperref Warning: Option `pdfpagelabels' is turned off
hyperref because \thepage is undefined.

That seems to be caused by an update of the hyperref package. The workaround is to switch this option off.
Instead of using:
\usepackage{hyperref}


Use:
\PassOptionsToPackage{pdfpagelabels=true}{hyperref}

References:
1. http://www.latex-community.org/forum/viewtopic.php?f=5&t=162

1 comment:

  1. I had to pass false instead of true to remove the warning for both the sig-alternate.cls and sigchi.cls files. Not sure why, and it may have affected the output in a way I haven't yet noticed. Make sure to put this call before the \documentclass:

    \PassOptionsToPackage{pdfpagelabels=false}{hyperref}

    ReplyDelete