Removing slide numbers in the Madrid theme

I would like to know how to remove the slide number and the total number of slides from ALL slides in my presentation.

-

Lockstep's answer shows you how to do this on a per-document basis. If you're likely to be using this a lot, here's how to make the change usable by other documents.

Here's a modified version of the infolines outer theme (which is loaded by Madrid) that removes the slide numbering.

beamerouterthemenoslidenum.sty

\defbeamertemplate*{footline}{noslidenum theme}
{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
\end{beamercolorbox}%
\end{beamercolorbox}}%
\vskip0pt%
}


Save this file as beamerouterthemenoslidenum.sty somewhere where your document can find it. If this is for only one document, you could put it in the same folder as the document itself, but a more sensible place to put it would be in your local texmf folder where it can be used by other documents too. If you do that it should ideally go in <path-to-your-local-texmf>/tex/latex/beamer

\documentclass{beamer}
\useoutertheme{noslidenum}
\begin{document}
\begin{frame}
\frametitle{First slide}
\end{frame}
\end{document}


-
I have tried the above but TeXLive2012 does not find the beamerouterthemenoslides.sty eventhough it is in the same directory as the other outerthemes. Does something need to be refreshed or is the style file in the wrong place? I have put it in the local Texmf directory but still not finding it... –  Leeser Sep 11 '12 at 9:29
Forgot to mention when I compile the above file and it says can't find the bemaerouterthemenoslidenum.sty (typo in 1st comment!) i input the location of the style file and it compiles correctly. However, I need to do this each time. What should I do to make TeX find the style files? Using Mac OSX. –  Leeser Sep 11 '12 at 9:42
@Leeser You shouldn't put the file in "the same place as the other outerthemes" since that is modifying your TeX distribution. It's best to put local beamer additions on a Mac in ~/Library/texmf/tex/latex/beamer. If you don't have such a directory, you can use this script to create the basic structure. See How do I add a .sty file to my MacTeX/TeXShop installation?. –  Alan Munn Sep 11 '12 at 11:51
Thank you style file placed in local system as directed above. All working as expected. Much appreciated –  Leeser Sep 11 '12 at 12:21
\documentclass{beamer}

\makeatletter
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
\end{beamercolorbox}%
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother

\begin{document}

\author{(Author)}
\title{(Title)}
\maketitle

\begin{frame}{(Frame title)}
Some text.
\end{frame}

\end{document}

-