Made sure \thepage was defined before loading hyperref, as to possibly enable pdfpagelabels=true

This commit is contained in:
Xavier Danaux
2012-10-30 21:06:22 -04:00
parent 36788d3cb8
commit fd54b3d27e
10 changed files with 3 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -123,7 +123,8 @@
\RequirePackage{url} \RequirePackage{url}
\urlstyle{tt} \urlstyle{tt}
\AtEndPreamble{ \AtEndPreamble{
\RequirePackage[unicode,pdfpagelabels=false]{hyperref}% unicode is required for unicode pdf metadata, pdfpagelabels=false is required to avoid a warning setting it automatically to false anyway, because hyperref detects \thepage as undefined (why?) \pagenumbering{arabic}% has to be issued before loading hyperref, as to set \thepage and hence to avoid hyperref issuing a warning and setting pdfpagelabels=false
\RequirePackage[unicode]{hyperref}% unicode is required for unicode pdf metadata
\hypersetup{ \hypersetup{
breaklinks, breaklinks,
baseurl = http://, baseurl = http://,
@ -137,9 +138,7 @@
pdfauthor = {\@firstname{}~\@familyname{}}, pdfauthor = {\@firstname{}~\@familyname{}},
pdftitle = {\@firstname{}~\@familyname{} -- \@title{}}, pdftitle = {\@firstname{}~\@familyname{} -- \@title{}},
pdfsubject = {Resum\'{e} of \@firstname{}~\@familyname{}}, pdfsubject = {Resum\'{e} of \@firstname{}~\@familyname{}},
pdfkeywords = {\@firstname{}~\@familyname{}, curriculum vit\ae{}, resum\'{e}}} pdfkeywords = {\@firstname{}~\@familyname{}, curriculum vit\ae{}, resum\'{e}}}}
\pagenumbering{arabic}% has to be issued after loading hyperref
}
% graphics % graphics
\RequirePackage{graphicx} \RequirePackage{graphicx}