# Headlines in Beamer

In Beamer presentation on one page I would like to get rid of headline. I would prefer to leave the background but get rid of the names of sections and subsections. How is it possible to do this?

\setbeamertemplate{headline}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=1.7ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{top}
\end{beamercolorbox}%
\ifbeamer@theme@subsection%
\begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=1.7ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{bottom}
\end{beamercolorbox}%
\fi%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
} \mode <all>

• Have you tried \begin{frame}[plain]? – kiss my armpit Aug 26 '12 at 9:38
• As I explain in my answer, to suppress only the information about sections and subsections but keeping all the other elements (color boxes, etc.) we need information about the specific definition for the actual headline template that you are using. Please add this information to your question. – Gonzalo Medina Aug 26 '12 at 13:25

If you want to suppress the complete headline, you can locally redefine the headline template to be empty:

\documentclass{beamer}
\usetheme{CambridgeUS}

\begin{document}

\begin{frame}
test frame
\end{frame}

\begingroup
\begin{frame}
test frame with empty headline
\end{frame}
\endgroup

\begin{frame}
test frame
\end{frame}

\end{document}


If you only want to suppress the navigation information for sections and subsections, some more work is needed; you need to redefine the headline template as defined in the outer theme used. For example, using the given headline template one can define a command, say \nosecinhead, to suppress the navigation bars from the headline for some frame(s); to use this command all you have to do is to say

\begingroup


right before \begin{frame}, and then

\endgroup


right after \end{frame}, as the following example illustrates (I assume that the top and bottom colors have been defined somewhere; I provided some ad hoc just for the example):

\documentclass[svgnames,x11names]{beamer}

\setbeamercolor{top}{fg=white,bg=red}
\setbeamercolor{bottom}{fg=white,bg=blue}
\setbeamercolor{lower separation line head}{bg=LightSteelBlue3}

{%
\begin{beamercolorbox}[ht=1.7ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{top}
\vskip2pt\mbox{}
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=1.7ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{bottom}
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}%
}

\begin{document}

\section{test}
\begin{frame}
test frame
\end{frame}

\begingroup
\begin{frame}
test frame with modified headline
\end{frame}
\endgroup

\begin{frame}
test frame
\end{frame}

\end{document}


• I would prefer the second solution (the one with more work). I edited my question with headline of my work. Would you know how to do modify it for my case? – Laura Aug 26 '12 at 18:28
• @Laura I updated my answer providing the necessary code. – Gonzalo Medina Aug 26 '12 at 20:20
• @Gonzola: It's almost what it should be only the white thin line above the two lines should be away and I woul like to add a line under two lines with \setbeamercolor{lower separation line head}{bg=LightSteelBlue3} – Laura Aug 26 '12 at 20:54
• @Laura I updated my answer. Please notice that in my example there's no white thin line; if this line appears in your document, something else must be going on with your settings and the information you provided is not enough to detect the problem. You could try playing by adding \vspace*{<length>} in an appropriate place in the definition of the \nosecinhead command and see if this helps you to get rid of that line. – Gonzalo Medina Aug 26 '12 at 21:04
• @Gonzola: it's perfect now. – Laura Aug 26 '12 at 21:18

\documentclass{beamer}
\title{How to use Beamer}
\subtitle{from novice to professional}
\author{Aggresive User}
\date{\today}
\institute{\TeX\ User Group}
\usetheme{AnnArbor}

\usepackage{graphicx}

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