option to show page num in currentPage/totalPage

Signed-off-by: Shengjiang Quan <qsj287068067@126.com>
This commit is contained in:
Shengjiang Quan 2023-07-30 22:28:04 +09:00
parent da661243bc
commit acb8cfdd75
3 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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 <currentPage>/<totalPage> 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}}
%-------------------------------------------------------------------------------

View file

@ -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 <currentPage>/<totalPage> 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}}
%-------------------------------------------------------------------------------