1

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.

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.