2

I have the following code which works for counting pages:

\setbeamertemplate{navigation symbols}{
    \usebeamercolor[fg]{title}
    \hspace{1em}
    \large\insertframenumber/\inserttotalframenumber
}

added to the preamble.

I was wondering if I could add something so that when I cycle through a single frame it counts that too for example I would like the following to show:

1a/1 , 1b/1 , 1c/1 instead of 1/1 for all frames.

\documentclass[demo]{beamer}

\setbeamertemplate{navigation symbols}{
    \usebeamercolor[fg]{title}
    \hspace{1em}
    \large\insertframenumber/\inserttotalframenumber
}

\begin{document}

    \begin{frame}{Title}
        \begin{itemize}
            \item<1-> stuff
            \item<2-> stuff
            \item<3-> stuff
        \end{itemize}
    \end{frame}

\end{document}
3

Here's one possibility:

\documentclass[demo]{beamer}
\usepackage{tikz}

\makeatletter
\def\c@slideinframe{\beamer@slideinframe}
\def\beamerslideinframe{\beamer@slideinframe}
\makeatother

\addtobeamertemplate{frametitle}{}{%
\begin{tikzpicture}[remember picture,overlay]
  \node[inner sep=0pt,font=\large,anchor=south east] 
    at ([xshift=-0.5em]current page.south east)       
    {\insertframenumber-(\alph{slideinframe})/\inserttotalframenumber};%
\end{tikzpicture}
}
\setbeamertemplate{navigation symbols}{}

\begin{document}

    \begin{frame}{Title}
    \frametitle{Slide \arabic{slideinframe}}
        \begin{itemize}
            \item<1-> stuff
            \item<2-> stuff
            \item<3-> stuff
        \end{itemize}
    \end{frame}

\end{document}

The result:

enter image description here

The template in which to add the information about the slide number has to be carefully chosen; in some "late" templates (such as navigation symbols, footline) the value for the slide number gets affected by the overlays specification, so I had to use an "early" template such as frametitle and used TikZ to place the numbers in the desired location.

The code needs two or three runs to stabilize.

  • hm... in some slides if I have a lot of text it throws it below the bottom of the slide, do you know why that may be? – evan54 Mar 7 '15 at 1:24
  • @evan54 I suspect the reason. Give me some minutes to fix this. – Gonzalo Medina Mar 7 '15 at 1:53
  • @evan54 please see my updated answer. Since some internal calculations are now used, the code needs two or three runs to stabilize – Gonzalo Medina Mar 7 '15 at 2:00

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.