feat: add total page number

This commit is contained in:
Adam 2022-10-11 19:11:49 -06:00
parent 04e329698d
commit 9056b8b095
1 changed files with 4 additions and 2 deletions

View File

@ -85,6 +85,7 @@ $if(background-image)$
\includegraphics[width=\paperwidth]{$background-image$}%
}
$endif$
\usepackage{fancyhdr}
\usepackage{pgfpages}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{: }
@ -827,6 +828,7 @@ $else$
$if(disable-header-and-footer)$
$else$
\usepackage[headsepline,footsepline]{scrlayer-scrpage}
\usepackage{lastpage}
\newpairofpagestyles{eisvogel-header-footer}{
\clearpairofpagestyles
@ -835,7 +837,7 @@ $else$
\ohead*{$if(header-right)$$header-right$$else$$date$$endif$}
\ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$}
\cfoot*{$if(footer-center)$$footer-center$$else$$endif$}
\ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$}
\ofoot*{$if(footer-right)$$footer-right$$else$\thepage\ of \pageref*{LastPage}$endif$}
\addtokomafont{pageheadfoot}{\upshape}
}
\pagestyle{eisvogel-header-footer}
@ -935,7 +937,7 @@ $endif$
\end{flushleft}
\end{titlepage}
\restoregeometry
\pagenumbering{arabic}
\pagenumbering{arabic}
$endif$
$endif$