Skip to content

Commit

Permalink
option to show page num in currentPage/totalPage
Browse files Browse the repository at this point in the history
Signed-off-by: Shengjiang Quan <[email protected]>
  • Loading branch information
sjiang95 committed Jul 30, 2023
1 parent da66124 commit acb8cfd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion examples/cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,7 +92,7 @@
\makecvfooter
{\today}
{Claud D. Park~~~·~~~Curriculum Vitae}
{\thepage}
{\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}}


%-------------------------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion examples/resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,7 +92,7 @@
\makecvfooter
{\today}
{Byungjin Park~~~·~~~Résumé}
{\thepage}
{\iftoggle{showpagetotal}{\thepage/\pageref*{LastPage}}{\thepage}}


%-------------------------------------------------------------------------------
Expand Down

0 comments on commit acb8cfd

Please sign in to comment.