I'm using beamer and the theme Copenhagen. I would like to remove the navigation menu (the list of section mames shown at the top of each slide) from the first (first page) and from the summary slides.
How can I do that?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI'm using beamer and the theme Copenhagen. I would like to remove the navigation menu (the list of section mames shown at the top of each slide) from the first (first page) and from the summary slides.
How can I do that?
You can set the headline
beamer template to be empty locally, using \setbeamertemplate{headline}{}
; if the frame has space reserved for a frame title, in addition to the modification mentioned before, you will have to move the frame title upwards for this frame, and this can be done by adding a convenient \vspace{<length>}
to the frametitle
template (also locally). A little example removing the navigation bar from the frame containing \maketitle
and for the frames containing the ToCs generated with \AtBeginSection
:
\documentclass{beamer}
\usetheme{Copenhagen}
\AtBeginSection[] % Do nothing for \section*
{
\begingroup
\setbeamertemplate{headline}{}
\addtobeamertemplate{frametitle}{\vspace*{-0.9\baselineskip}}{}
\begin{frame}<beamer>
\frametitle{Summary}
\tableofcontents[currentsection]
\end{frame}
\endgroup
}
\title{The Title}
\author{The Author}
\institute{The Institute}
\begin{document}
{
\setbeamertemplate{headline}{}
\begin{frame}
\maketitle
\end{frame}
}
\section{Test Section One}
\begin{frame}{The frame title}
test one
\end{frame}
\begin{frame}{The frame title}
test two
\end{frame}
\section{Test Section Two}
\begin{frame}{The frame title}
test three
\end{frame}
\begin{frame}{The frame title}
test four
\end{frame}
\end{document}
The resulting document:
For an specific frame the same principle applies:
{
\setbeamertemplate{headline}{}
\addtobeamertemplate{frametitle}{\vspace*{-0.9\baselineskip}}{}
\begin{frame}
\frametitle{Summary}
Some text here
\end{frame}
}
A complete example, as required in a comment;
\documentclass{beamer}
\usetheme{Copenhagen}
\title{The Title}
\author{The Author}
\institute{The Institute}
\begin{document}
{
\setbeamertemplate{headline}{}
\begin{frame}
\maketitle
\end{frame}
}
{
\setbeamertemplate{headline}{}
\addtobeamertemplate{frametitle}{\vspace*{-0.9\baselineskip}}{}
\begin{frame}
\frametitle{Summary}
Some text here
\end{frame}
}
\section{Test Section One}
\begin{frame}{The frame title}
test one
\end{frame}
\begin{frame}{The frame title}
test two
\end{frame}
\section{Test Section Two}
\begin{frame}{The frame title}
test three
\end{frame}
\begin{frame}{The frame title}
test four
\end{frame}
\end{document}
\AtBeginSection{...}
.
– Gonzalo Medina
Oct 10 '12 at 21:25
\vspace*{-\headheight}
instead of \vspace*{-0.9\baselineskip}
in the above. I guess that is more generic.
– MLC
May 23 '15 at 13:29
A very simple solution uses the plain
option of the frame
environment... This option removes the headline and the footline of the current frame
:
\begin{frame}[plain]
...
\end{frame}
plain
option to bothframe
s. – Paul Gaborit Oct 10 '12 at 20:59plain
option is the simpler solution. – Paul Gaborit Oct 10 '12 at 21:33