0

I am trying to duplicate a given corporate design as beamer theme.

A far, I was able to reproduce most of the settings for the normal slides.

Now I am working on the title page, which has a complete different design, mostly with other logos and a customized header and footer. My problem: how do I get rid of the headline and footline template just for the title page? Using \begin{frame}[plain] isn't a real option, because, when you forget to add the [plain], you'll get both logos and so on.

In my MWE I present the same problem by removing the nav symbols from just the title page.

EDIT

I added three example templates headline, footline and title page to this example. I want to get rid of the two logos A and B from the title page.

\documentclass{beamer}
\usepackage{graphicx}

\usetheme{Berlin}

\title{Some ordinary title}
\subtitle{And another title}
\author{I. T. Sme}
\date{Not Long Ago}

%% This would remove the nav symbols from all slides, which I don't
%% want.
% \setbeamertemplate{navigation symbols}{}

\setbeamertemplate{headline}{%
  \includegraphics[width=.1\linewidth]{example-image-a}
}
\setbeamertemplate{footline}{%
  \hfill\includegraphics[width=.1\linewidth]{example-image-b}
}

%% I'd love to get rid of the logos A and B and the navigation
%% symbols, but setting the templates temporary to {} does have no
%% effect.
\setbeamertemplate{title page}{%
  \setbeamertemplate{headline}{}%
  \setbeamertemplate{footline}{}%
  \setbeamertemplate{navigation symbols}{}%  
  \centering\includegraphics[width=.1\linewidth]{example-image-c}%
  \vskip1cm
  \begin{center}
    \inserttitle\\
    \insertsubtitle\\
    \insertauthor,\ \insertdate
  \end{center}
  \vfill%
}

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

\begin{frame}
  \frametitle{First real slide}
  This is a normal slide with normal headline and footline.
\end{frame}
\end{document}

What must I write into my \defbeamertemplate{title page} to temporary remove the headline/footline from that titlepage?

There is a similar question, in which the answer was given, to define the headline/footline in dependency of the page number: no headline for page 1, footline of page > 1. This is also not an option for me, as the corporate design supplies from one up to three titlepages. :-(

If there is any other chance, to test from within the footline template, if the actual page is a title like page, that would be great.

5
  • I do not understand the statement "Using \begin{frame}[plain] isn't a real option, because, when you forget to add the [plain], you'll get both logos and so on." I just looked in my custom beamer theme and I used exactly this (\begin{frame}[plain]). Jun 7, 2021 at 2:56
  • @Dr.ManuelKuehner This template shall be used by a lot of different people. Most of them are not aware of the [plain] option and hence don't use them in their documents. They just write \begin{frame}\titlepage\end{frame}, which would result in a page showing the correct logo and decoration from the title page-template and a second logo and it different decoration from the headline and footline-templates. They would wonder, where the heck, the doubled logos come from. If the title page-template could inherit the plain-option, I would be glad.
    – Jan
    Jun 7, 2021 at 4:44
  • 1
    I would just provide the information in the template, e. g. as a comment. But in the end, you decide how much time you want to spend on the topic. Jun 7, 2021 at 5:16
  • See my edit, hope it makes the question for you more clear.
    – Jan
    Jun 7, 2021 at 6:42
  • Sam Carter (is at Topanswer.xyz) pointed elsewhere out, that one could use pagestyles, define multiple headlines which depend on one pagestyle and eh voila. She also gave some MWE here: topanswers.xyz/tex?q=1004
    – Jan
    Jun 8, 2021 at 5:30

1 Answer 1

1

As Sam Carter is no more active on TeX.SE, she nevertheless was so friendly, to point out to a solution, she gave on topanswers.xyz.

I repeat her answer here, with three minor fixes.

Please note: this is an answer from SAM CARTER! All the credit and the glory belong to her!

\documentclass{beamer}

\defbeamertemplate{footline}{special footline}{%
  special footline
}

%% EDIT from me: In my case it worked, when I changed \setbeamertemplate
%% to \defbeamertemplate
%\setbeamertemplate{footline}{%
\defbeamertemplate{footline}{%
  normal footline
}


\makeatletter
\def\ps@navigation@titlepage{%
%% EDIT from me: the second braces need to be optional braces
%  \setbeamertemplate{footline}{special footline}
  \setbeamertemplate{footline}[special footline]
  \@nameuse{ps@navigation}
}
\addtobeamertemplate{title page}{\thispagestyle{navigation@titlepage}}{}
\makeatother

\AtBeginSection[]{%
\begingroup
%% EDIT from me: again, there need to be optional braces
%\setbeamertemplate{footline}{special footline}
\setbeamertemplate{footline}[special footline]
\begin{frame}
  \sectionpage
\end{frame}
\endgroup
}

\apptocmd{\tableofcontents}{\thispagestyle{navigation@titlepage}}{}{}

\begin{document}
\maketitle

\begin{frame}
\tableofcontents
\end{frame}

\section{abc}
\begin{frame}
\frametitle{abc}
cde
\end{frame} 
\end{document}

Thank you Sam!

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.