From d5ffdb5a8022385e282300e8b9fba2e9c37e2aba Mon Sep 17 00:00:00 2001 From: Joel Ong Date: Tue, 25 Apr 2023 11:16:16 -1000 Subject: [PATCH] do not hyperlink pageref to last page --- moderncv.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderncv.cls b/moderncv.cls index 89ec73f..139e9f2 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -147,7 +147,7 @@ \newlength{\pagenumberwidth}% \settowidth{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\thepage/\pageref{lastpage}}% \fancypagestyle{plain}{% - \fancyfoot[r]{\parbox[b]{\pagenumberwidth}{\color{color2}\pagenumberfont\strut\thepage/\pageref{lastpage}}}}% the parbox is required to ensure alignment with a possible center footer (e.g., as in the casual style) + \fancyfoot[r]{\parbox[b]{\pagenumberwidth}{\color{color2}\pagenumberfont\strut\thepage/\protect\NoHyper\pageref{lastpage}\protect\endNoHyper}}}% the parbox is required to ensure alignment with a possible center footer (e.g., as in the casual style) \pagestyle{plain}}{}}\fi}% \AtEndDocument{\label{lastpage}}} \pagestyle{plain}