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 % Solves issues Warning: File `cv.out' has changed
\RequirePackage{bookmark} \RequirePackage{bookmark}
% Use \pageref{LastPage} to get the number of total pages
\RequirePackage{lastpage}
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% Configuration for directory locations % 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 % If you would like to change the social information separator from a pipe (|) to something else
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} \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 % PERSONAL INFORMATION
@ -88,7 +92,7 @@
\makecvfooter \makecvfooter
{\today} {\today}
{Claud D. Park~~~·~~~Curriculum Vitae} {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 % If you would like to change the social information separator from a pipe (|) to something else
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} \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 % PERSONAL INFORMATION
@ -88,7 +92,7 @@
\makecvfooter \makecvfooter
{\today} {\today}
{Byungjin Park~~~·~~~Résumé} {Byungjin Park~~~·~~~Résumé}
{\thepage} {\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}}
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------