I am using the class resume.cls for writing my curriculum.
I would like to use as page numbers the text "page k out of n", but I seem not to be able to get a reference to the last page.
- If I add a simple label 'lastone' at the end of the resume and use \pageref{lastone} the reference stays undefined no matter how many times I compile the source.
- If I use the package 'lastpage' I get an error related to a missing curly brace (which disappears as soon as I do not include that package).
- If I use the package 'zref-lastpage' and refer to the last one with \zpageref{LastPage}, I get an error related to an undefined macro.
Is there any way I can have a reference to the last page in order to insert its page number?
This is an example (you need to download the .cls file because I could not find a way to attach files).
\documentclass[margin,line]{resume}
\usepackage{zref-lastpage}
\usepackage{fancybox}
\makeatletter \renewcommand{\@evenfoot}%
{\normalsize\slshape CV di Tizio \hfil \upshape pag. {\thepage} di \zpageref{LastPage}} % \pageref{ultima}} % \zpageref{LastPage}}
\renewcommand{\@oddfoot}{\@evenfoot} \makeatother
\begin{document}
\name{\Large Tizio -- \it Curriculum Vitae et Studiorum}
\begin{resume}
\pagenumbering{arabic}
\section{\mysidestyle Informazioni\\ personali}\vspace{2mm}\label{informazioni-personali}
This is me
% ENDING
bye
\label{ultima}\end{resume}
\end{document}