1

Footline of my beamer presentation contains page numbers. Is it possible to add a different footline to the last frame (something like "this is the last slide") ? Please note that, I am talking about adding the command to the preamble, so that I don't have to manually type the required footline on the last page.

A minimal working example is:

\documentclass{beamer}

\begin{document}
\begin{frame}    
First page    
\end{frame}

\begin{frame}    
Last page
Footline - "last slide" is needed here.
\end{frame}
\end{document} 

I tried this method - Footer on last page (for article or book class), which is not working for beamer. Any help on this is highly appreciated. Thanks in advance.

2
\documentclass{beamer}

\setbeamertemplate{footline}{%
        \if\insertframenumber\inserttotalframenumber
            last frame
        \else
            footline of normal slides
        \fi
}

\begin{document}
\begin{frame}    
First page    
\end{frame}

\begin{frame}   
Last page
Footline - "last slide" is needed here.
\end{frame}
\end{document} 
  • How to modify \if\insertframenumber\inserttotalframenumber if I want it to refer to the first (title) frame? Or frame No. 4? – Viesturs Jan 25 '18 at 21:33
  • @Viesturs Why do you want to modify the footline of the titlepage? To remove it? – user36296 Jan 25 '18 at 21:49
  • Yes. I saw in tex.stackexchange.com/questions/18828/… that one can use \setbeamertemplate{footline}{} in the scope of the titlepage, but I am nevertheless curious how to modify that expression. – Viesturs Jan 25 '18 at 21:55
  • 1
    @Viesturs \if\insertframenumber1, but such hard codes values are quite inflexible. What if one of your presentations will have no title page or the title page will not be the first slide? I think such a change should be made from within the presentation, e.g. \begin{frame}[plain] \titlepage \end{frame} – user36296 Jan 25 '18 at 21:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.