Showing posts with label hyperref. Show all posts
Showing posts with label hyperref. Show all posts

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

Wednesday, November 13, 2013

Latex hyperref, url packages: Break URL

When using both hyperref and url packages, and you get a package conflict, make sure the url package is listed before the hyperref package.

Also, if you need to break the URL into multiple lines, then you need to use the hyphens option in the url package. So your latex configuration should look like:

\usepackage[hyphens]{url}
\usepackage{hyperref}  

Reference:
1. http://stackoverflow.com/questions/2625714/linebreak-in-url-with-bibtex-and-hyperref-package