diff --git a/assets/locales/en.yaml b/assets/locales/en.yaml index 2bf045e..cf3253f 100644 --- a/assets/locales/en.yaml +++ b/assets/locales/en.yaml @@ -103,4 +103,5 @@ alternate: locales: choose: "Choose your language:" +page-counter: "Page %s of %s" diff --git a/assets/locales/fr.yaml b/assets/locales/fr.yaml index 1ed6a57..bee5a67 100644 --- a/assets/locales/fr.yaml +++ b/assets/locales/fr.yaml @@ -101,3 +101,5 @@ alternate: locales: choose: "Choisissez votre langue : " +page-counter: "Page %s de %s" + diff --git a/templates/cv.tex b/templates/cv.tex index ba959e3..3ebd8cc 100644 --- a/templates/cv.tex +++ b/templates/cv.tex @@ -22,6 +22,7 @@ \usepackage[inkscapepath=./build/latex/inkscape-svg]{svg} \usepackage{verbatimbox} \usepackage{stackengine} +\usepackage{lastpage} \newcommand\svgsize{10pt} @@ -39,7 +40,7 @@ \fancyfoot{} \fancyfoot[L]{(( misc.updated_at | format_date(locale=getLocale()) ))} \fancyfoot[C]{(% if anno %)CV annonyme(% else %)(( firstName )) (( lastName )) - CV(% endif %)} -\fancyfoot[R]{\thepage} +\fancyfoot[R]{(( getLocalizedStr("page-counter")|format("\\thepage{}", "\\pageref*{LastPage}")|raw ))} \newcommand\link[2]{\color{linkcolor}\href{#1}{#2}\color{Black} } @@ -218,6 +219,8 @@ (% endfor %) \end{longtable} + \pagebreak + % Section: Volunteering experiences \sectionTitle{(( getLocalizedStr('projects.volunteering.title') ))} \begin{longtable}{R{\leftcolumn}|E} @@ -233,7 +236,6 @@ \vspace{1em} - \pagebreak % Section: Education \sectionTitle{(( getLocalizedStr('education.title') ))}