Using beamer
, how to make a title page without a navigation bar, using the theme "warsaw" or how to get a title page from another theme, but maintaining the navigation bar on the other frames?
[Tex/LaTex] How to make a title page with beamer without navigation bar, using theme warsaw
beamertitles
Related Solutions
This bug has been fixed in
beamer
version 3.23, so the fix provided in this answer shouldn't be necessary any more!
This is most likely a beamer
bug, which was already reported, but closed as not reproducible. A workaround is to shift the frame title down as you suggested, which can be done by using
\addtobeamertemplate{headline}{}{\vskip2pt}
after having loaded Warsaw
and infolines
.
Example code
\documentclass{beamer}
\usetheme{Warsaw}
\useoutertheme{infolines}
% fix clipped headline (bug with Warsaw/infolines)
\addtobeamertemplate{headline}{}{\vskip2pt}
\begin{document}
\section{Section}
\subsection{Subsection}
\begin{frame}
\frametitle{Frame title}
\end{frame}
\end{document}
The conditional you are trying to set can be achieved using \insertframenumber
:
\ifnum\insertframenumber>1\relax%
<code for the naviagtion bar>
\fi
A complete example:
\documentclass[compress]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\title{There Is No Largest Prime Number}
\date[ISPN ’80]{27th International Symposium of Prime Numbers}
\author[Euclid]{Euclid of Alexandria \texttt{euclid@alexandria.edu}}
%\usetheme{udp}
%% Color theme
\definecolor{frontColor}{RGB}{119,95,85}%MedianBrown
\definecolor{firstColor}{RGB}{148,182,210}%MedianLightBlue
\definecolor{secondColor}{RGB}{221,128,71}%MedianOrange
% Settings
\setbeamercolor*{title page header}{fg=white}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
\setbeamercolor*{item}{fg=secondColor}
%color for the navigation bar
\setbeamercolor*{section in head/foot}{fg=white,bg=black}
%% beameroutertheme
%headline with navigation bar
% I need to change this to behave differently on the title page
\setbeamertemplate{headline}
{%
\leavevmode
\ifnum\insertframenumber>1\relax%
\begin{beamercolorbox}[wd=\the\paperwidth,ht=0.6cm]{section in head/foot}
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,0.6);
\fill[secondColor] (0,0) rectangle(0.3,0.6);
\fill[firstColor] (0.35,0) rectangle(\the\paperwidth,0.6);
\node[anchor= west, white] at (0.3,0.3){\insertnavigation{0.85\paperwidth}};%
\end{tikzpicture}
\end{beamercolorbox}
\fi
\vskip-17pt% Hack: just to prevent overfull \vboxes
}
% Frame title
\defbeamertemplate*{frametitle}{udp}[1][]
{%
\vskip-1pt%skip after the begginning of the slide
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,0.6);
\fill[secondColor] (0,0) rectangle(0.3,1);
\fill[firstColor] (0.35,0) rectangle(\the\paperwidth,0.6);
{\node[anchor=west, white,font=\large] at (0.4,0.3){\insertframetitle};}
\end{tikzpicture}
\end{beamercolorbox}
}
%% beamerinnertheme
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=frontColor] (0,2) rectangle (\the\paperwidth,\the\paperheight);
\fill[color=secondColor] (0,0) rectangle(2.95,1.9);
\fill[color=firstColor] (3.05,0) rectangle(\the\paperwidth,1.9);
\ifnum\thepage>1\relax%
\fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{udp}[1][]
{%
%do the title page
\vskip0.5cm%
\begin{minipage}[r]{\linewidth}
\begin{flushright}
% logo goes here
\end{flushright}
\end{minipage}
\vskip0.5cm%
\begin{minipage}[t][5cm][b]{\textwidth}
\begin{beamercolorbox}[wd=\the\paperwidth,leftskip=3cm,sep=8pt,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\end{minipage}
\vskip0.5cm%
\begin{minipage}[c][1.6cm][c]{\textwidth}
\begin{beamercolorbox}[wd=\the\paperwidth,leftskip=3.5cm,#1]{author}
\usebeamerfont{author}\insertauthor%
\end{beamercolorbox}
\vskip0.2cm%
\begin{beamercolorbox}[wd=\the\paperwidth,leftskip=3.5cm,#1]{date}
\usebeamerfont{author}\insertdate%
\end{beamercolorbox}
\end{minipage}
\vfill
}
% I also tried to fix the title page navigation bar by redefining the title command
%\def\oldtitlepage\titlepage
%\def\titlepage{\setbeamertemplate{headline}{test}\oldtitlepage}
% Items
\setbeamertemplate{items}[square]
\setbeamertemplate{sections/subsections in toc}[square]
\begin{document}
{% I tried to remove the headline here
\setbeamertemplate{headline}{}
\begin{frame}
\titlepage
\end{frame}
}
\section{First section}
\subsection{1}
\begin{frame}
\frametitle{There Is No Largest Prime Number}
\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
\begin{theorem}
There is no largest prime number. \end{theorem}
\end{frame}
\begin{frame}
\frametitle{There Is No Largest Prime Number}
\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
\begin{theorem}
There is no largest prime number. \end{theorem}
\end{frame}
\end{document}
Best Answer
The »plain« option for the
frame
environment is probably what you are looking for.Details about that in the beamer manual.