[Tex/LaTex] Removing slide numbers in the Madrid theme


I use 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.

Best Answer

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.


\defbeamertemplate*{footline}{noslidenum theme}
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em} 

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

Then in your document, you load the Madrid theme and then load your new outertheme:

  \frametitle{First slide}

output of code