From 453ec66ffaa5304ea03a78edc97b270f9b6e864b Mon Sep 17 00:00:00 2001 From: Shengjiang Quan Date: Sun, 30 Jul 2023 10:01:36 +0900 Subject: [PATCH] option to show page num in currentPage/totalPage Signed-off-by: Shengjiang Quan --- awesome-cv.cls | 2 ++ examples/cv.tex | 4 ++++ examples/resume.tex | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index 961410e00..cecf5145c 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 d055f79d4..dc3330968 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -89,6 +89,10 @@ {\today} {Claud D. Park~~~·~~~Curriculum Vitae} {\thepage} + % comment out the above line + % and uncomment the following line to use + % / page number + % {\thepage/\pageref*{LastPage}} %------------------------------------------------------------------------------- diff --git a/examples/resume.tex b/examples/resume.tex index 415dcea50..40d8c9862 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -89,6 +89,10 @@ {\today} {Byungjin Park~~~·~~~Résumé} {\thepage} + % comment out the above line + % and uncomment the following line to use + % / page number + % {\thepage/\pageref*{LastPage}} %-------------------------------------------------------------------------------