diff --git a/awesome-cv.cls b/awesome-cv.cls index 961410e..cecf514 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -92,6 +92,8 @@ } % Solves issues Warning: File `cv.out' has changed \RequirePackage{bookmark} +% Use \pageref{LastPage} to get the number of total pages +\RequirePackage{lastpage} %------------------------------------------------------------------------------- % Configuration for directory locations diff --git a/examples/cv.tex b/examples/cv.tex index d055f79..4e6251e 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -44,6 +44,10 @@ % If you would like to change the social information separator from a pipe (|) to something else \renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} +\newtoggle{showpagetotal} +% toggle the boolean flag if you would like to use / page number +% \toggletrue{showpagetotal}% Need to compile twice +\togglefalse{showpagetotal} %------------------------------------------------------------------------------- % PERSONAL INFORMATION @@ -88,7 +92,7 @@ \makecvfooter {\today} {Claud D. Park~~~·~~~Curriculum Vitae} - {\thepage} + {\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}} %------------------------------------------------------------------------------- diff --git a/examples/resume.tex b/examples/resume.tex index 415dcea..8fc5679 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -44,6 +44,10 @@ % If you would like to change the social information separator from a pipe (|) to something else \renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} +\newtoggle{showpagetotal} +% toggle the boolean flag if you would like to use / page number +% \toggletrue{showpagetotal}% Need to compile twice +\togglefalse{showpagetotal} %------------------------------------------------------------------------------- % PERSONAL INFORMATION @@ -88,7 +92,7 @@ \makecvfooter {\today} {Byungjin Park~~~·~~~Résumé} - {\thepage} + {\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}} %-------------------------------------------------------------------------------