# Number of slides in head/foot

## I use the following codes

\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}

%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

%-----------------------------footline-----------------------------
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
\end{beamercolorbox}%
}%
\vskip0pt%
}

\title[The essential numerical range and the Olsen problem]{The
essential numerical range and the Olsen problem}
\author[{Student} (University of ....)]{Student}

\begin{document}

\begin{frame}

\end{frame}

\end{document}


After compilation, I obtain

My goal is to create a foot for the numebr of the slides with different colors i.e. the author with one color, the litle of the presentation with a second color and the number of the slide with a third color like the following:

\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}

%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

%-----------------------------footline-----------------------------
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
%            \hspace*{3em}
\end{beamercolorbox}%
\end{beamercolorbox}%
}%
\vskip0pt%
}

\title[The essential numerical range and the Olsen problem]{The
essential numerical range and the Olsen problem}
\author[{Student} (University of ....)]{Student}

\begin{document}

\begin{frame}

\end{frame}

\end{document}


• Thank you for your answer. However after compilation the number of the slides does not appear. Where is the problem? Thanks a lot for your help. – Student Nov 11 '18 at 12:10
• @Student Can you try not with your own document, but with the exact code from my answer and see if this works for you? – samcarter_is_at_topanswers.xyz Nov 11 '18 at 12:20
• Yes I try with your codes but the number of the slides does not appear. – Student Nov 11 '18 at 12:29
• @Student Can you try with \setbeamercolor{page number in head/foot}{bg=gray,fg=red}? – samcarter_is_at_topanswers.xyz Nov 11 '18 at 12:30
• Yes now it compilates and the number appear. Thank you very much – Student Nov 11 '18 at 12:32