3

Why are the slides from appendix not numbered with letters?

Is there a solution?

Thank you for your help

\documentclass{beamer}
\begin{document}

\section{test1}
\begin{frame}{\insertsectionnumber.~\insertsection}
 bal bla
\end{frame}

\appendix

\section{test2}
\begin{frame}{\insertsectionnumber.~\insertsection}
 bla bla
\end{frame}

\end{document}
3

This is so, because \insertsectionnumber is defined as (in the file beamerbasesection.sty)

\def\insertsectionnumber{\@arabic\c@section}

And \appendix doesn't change this;

\newcommand<>\appendix{%
  \only#1{\part{\appendixname}
  \addtocontents{nav}{\protect\headcommand{\protect\beamer@appendixpages{\the\c@page}}}}}

so the counter will appear using arabic representation.

You can change this, redefining \insertsectionnumber in the proper location:

\setcounter{section}{0}
\renewcommand\insertsectionnumber{\Alph{section}}

Perhaps you want to let \appendix do this change:

\documentclass{beamer}

\makeatletter
\renewcommand<>\appendix{%
\setcounter{section}{0}%
\renewcommand\insertsectionnumber{\Alph{section}}%
  \only#1{\part{\appendixname}
  \addtocontents{nav}{\protect\headcommand{\protect\beamer@appendixpages{\the\c@page}}}}}
\makeatother

\begin{document}

\section{test1}
\begin{frame}{\insertsectionnumber.~\insertsection}
 bal bla
\end{frame}

\appendix

\section{test2}
\begin{frame}{\insertsectionnumber.~\insertsection}
 bla bla
\end{frame}

\end{document}

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.