[Tex/LaTex] Slide Number in the sidebar of PaloAlto theme in beamer

beamerpage-numbering

I would like to insert number_of_the_current_slide/total_number_of_slides at the bottom of the sidebar of the PaloAlto theme in the beamer class, without any changes in the other features. Any suggestions?
Thanks

Best Answer

I have found how to do it. This was my first typeset:

\documentclass{beamer}
\usetheme{PaloAlto}
\title{Lie Algebras}
\author{Emanuele}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Piano della presentazione}
\tableofcontents
\end{frame}
\end{document}

and the following is the second:

\documentclass{beamer}
\usetheme{PaloAlto}
\addtobeamertemplate{footline}
{%
   \usebeamercolor[fg]{author in sidebar}
   \vskip-1cm\hskip10pt
   %\insertpagenumber\,/\,\insertpresentationendpage\kern1em\vskip2pt%
   \insertframenumber\,/\,\inserttotalframenumber\kern1em\vskip2pt%
}
\title{Lie Algebras}
\author{Emanuele}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Piano della presentazione}
\tableofcontents
\end{frame}
\end{document}

The difference is that in the second typeset there is the numbering of the pages in the bottom of the sidebar.