# Adding slide numbers in the footer of beamer documents

I am using the Dresden theme, which by default it gives me two lines at the bottom of the every slide, the first one containing the author name on the left and the institute name on the right, the second one containing the title of the presentation on the left and nothing else.

Is it possible to include the slide number on the right of this second line, without using \setoutertheme{infolines}?

-

  \setbeamertemplate{footline}%{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
\hfill%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}


after \usetheme{Dresden}. This will add a framenumber like so:

It's simply another modification to the theme. Those themes can be found in the beamer directory in the texmf-tree. Function of the beamer specific macros is documented in the beamer documentation.

Complete Code:

\documentclass{beamer}

\usetheme{Dresden}

\title[title]{long title}
\institute[inst]{long inst}

\setbeamertemplate{footline}%{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
\hfill%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%