Beamer - Total frame number in roman

by Ashok   Last Updated January 14, 2018 06:23 AM

I am trying to get roman numbers for beamer footline. I tried the following code:

\documentclass[•]{beamer}
\renewcommand{\insertframenumber}{\roman{framenumber}}
\renewcommand{\inserttotalframenumber}{\roman{totalframenumber}}  
\setbeamertemplate{footline}{\insertframenumber/\inserttotalframenumber}

\begin{document}
\begin{frame}
I need the frame number as "i/i"
\end{frame}
\end{document}

The code runs fine and the frame number is printed in roman, but the total frame number is still in the default format. Please help. Thanks in advance.



Answers 1


Notice that there is no counter totalframenumber. Therefore \roman{totalframenumber} fails. Here is a possible solution.

\documentclass{beamer}
\renewcommand{\insertframenumber}{\roman{framenumber}}
\newcounter{numberoframes}
\begin{document}
\setcounter{numberoframes}{\inserttotalframenumber}
\setbeamertemplate{footline}{\insertframenumber/\roman{numberoframes}} 
\begin{frame}
\frametitle{Test}
I need the frame number as "i/i"  \dots 
\end{frame}
\begin{frame}
\frametitle{Test 3}
\dots finally I got it!
\end{frame}
\end{document}

enter image description here

marmot
marmot
January 14, 2018 06:03 AM

Related Questions





Beamer - Frame numbering in alphabetic format

Updated January 18, 2018 19:23 PM