Skip to content

Commit acb8cfd

Browse files
committed
option to show page num in currentPage/totalPage
Signed-off-by: Shengjiang Quan <[email protected]>
1 parent da66124 commit acb8cfd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

awesome-cv.cls

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
}
9393
% Solves issues Warning: File `cv.out' has changed
9494
\RequirePackage{bookmark}
95+
% Use \pageref{LastPage} to get the number of total pages
96+
\RequirePackage{lastpage}
9597

9698
%-------------------------------------------------------------------------------
9799
% Configuration for directory locations

examples/cv.tex

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
% If you would like to change the social information separator from a pipe (|) to something else
4545
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad}
4646

47+
\newtoggle{showpagetotal}
48+
% toggle the boolean flag if you would like to use <currentPage>/<totalPage> page number
49+
% \toggletrue{showpagetotal}% Need to compile twice
50+
\togglefalse{showpagetotal}
4751

4852
%-------------------------------------------------------------------------------
4953
% PERSONAL INFORMATION
@@ -88,7 +92,7 @@
8892
\makecvfooter
8993
{\today}
9094
{Claud D. Park~~~·~~~Curriculum Vitae}
91-
{\thepage}
95+
{\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}}
9296

9397

9498
%-------------------------------------------------------------------------------

examples/resume.tex

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
% If you would like to change the social information separator from a pipe (|) to something else
4545
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad}
4646

47+
\newtoggle{showpagetotal}
48+
% toggle the boolean flag if you would like to use <currentPage>/<totalPage> page number
49+
% \toggletrue{showpagetotal}% Need to compile twice
50+
\togglefalse{showpagetotal}
4751

4852
%-------------------------------------------------------------------------------
4953
% PERSONAL INFORMATION
@@ -88,7 +92,7 @@
8892
\makecvfooter
8993
{\today}
9094
{Byungjin Park~~~·~~~Résumé}
91-
{\thepage}
95+
{\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}}
9296

9397

9498
%-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)