6

An easy way to get a different footline for a given frame is to declare the template locally. For example, to have a footline with the text my special footline, one can write:

\documentclass{beamer}

\begin{document}

{
\setbeamertemplate{footline}{my special footline}
\begin{frame}
  \titlepage
\end{frame}
}

\end{document}

Hence, my question: Is it possible to modify a theme such that the footline automatically reads as my special footline on the title page when one enters

\begin{frame}
  \titlepage
\end{frame} 

P.S. A simple solution would be to test the number of the frame. However, it does not apply in my case since this assumes that there is necessarily a title page.

3
  • You can redefine the titlepage template and add the elements of the footline there and then use it within a plain frame. Commented Jul 4, 2016 at 15:16
  • @samcarter: Could you be more specific. My goal is to have a different footline when a user enters \begin{frame} \titlepage \end{frame}. Many thanks!
    – user94293
    Commented Jul 5, 2016 at 14:30
  • See my answer for a rough idea. Commented Jul 5, 2016 at 15:15

2 Answers 2

5

Here is the solution I was looking for. The same technique can be used to define a specific template (or beamer color) for the title page.

\documentclass{beamer}

\makeatletter
\def\ps@navigation@titlepage{%
  \setbeamertemplate{footline}{my special footline}% <-- define here the specific footline for the titlepage 
  \@nameuse{ps@navigation}}
\addtobeamertemplate{title page}{\thispagestyle{navigation@titlepage}}{}
\makeatother

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

\end{document}
2
  • What is the purpose of the \@nameuse{ps@navigation}}? The proposal works without and I don‘t see, what it‘s doing.
    – TobiBS
    Commented Jul 1, 2020 at 22:20
  • @TobiBS The purpose is to apply to regular navigation page style so that the navigation@titlepage page style inherits it
    – user94293
    Commented Feb 6, 2021 at 8:44
2

Just a quick and dirty hack, but basically my idea is to add the content of your special footline (in my case, I switched the colours) just at the end of the titlepage definition:

\documentclass{beamer}

\usetheme{Warsaw}

% mod. from default theme
\defbeamertemplate*{title page}{myspecial}[1][]
{
    \vbox{}
    \vfill
    \begingroup
    \centering
    \begin{beamercolorbox}[sep=8pt,center]{title}
        \usebeamerfont{title}\inserttitle\par%
        \ifx\insertsubtitle\@empty%
        \else%
        \vskip0.25em%
        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
        \fi%     
    \end{beamercolorbox}%
    \vskip1em\par
    \begin{beamercolorbox}[sep=8pt,center,#1]{author}
        \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center,#1]{institute}
        \usebeamerfont{institute}\insertinstitute
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center,#1]{date}
        \usebeamerfont{date}\insertdate
    \end{beamercolorbox}\vskip0.5em
    {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
    \endgroup
    \vfill
    %%%%%%%%%% added footline from split
    \leavevmode%
    \tiny%
    \hbox{
        \hskip-1.1cm%
        \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{title in head/foot}%
        \usebeamerfont{author in head/foot}\insertshortauthor
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
        \usebeamerfont{title in head/foot}\insertshorttitle
    \end{beamercolorbox}}%
}

\title{test title}

\setbeamertemplate{navigation symbols}{}

\setbeamertemplate{title page}[myspecial][colsep=-4bp,rounded=true,shadow=false]

\begin{document}

    \begin{frame}[plain,b]
        \titlepage
    \end{frame} 

    \begin{frame}
        normal
    \end{frame}

\end{document}

enter image description here

3
  • Is it possible to do the same but without passing the options [plain,b]? Namely, when the title page is called as \frametitle{\titlepage}. Thanks!
    – user94293
    Commented Jul 13, 2016 at 0:10
  • @user94293 Probably not. But feel free to ask a new question, maybe there are some wizards around. Commented Jul 13, 2016 at 6:06
  • Well it is possible to do so ;) Cf. the other answer.
    – user94293
    Commented Oct 1, 2016 at 2:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .