\setbeamercolor{frametitle}{fg=mjotitle}
-\setbeamercolor*{section in head/foot}{fg=mjotitle}
-\setbeamercolor*{subsection in head/foot}{fg=mjotitle}
-\setbeamercolor*{author/framecount in foot}{fg=mjotitle}
-\setbeamercolor*{title in head/foot}{fg=mjotitle}
+\setbeamercolor{section in head/foot}{fg=mjotitle}
+\setbeamercolor{subsection in head/foot}{fg=mjotitle}
+\setbeamercolor{author/framecount in foot}{fg=mjotitle}
+\setbeamercolor{title in head/foot}{fg=mjotitle}
% Display the current/total frame count.
\setbeamertemplate{page number in head/foot}[totalframenumber]%
-% No headline.
-\setbeamertemplate{headline}{}
+% Insert the Section (and optionally, Part:) into the header.
+\setbeamertemplate{headline}{
+ \begin{beamercolorbox}[ht=3ex,dp=1.125ex,%
+ leftskip=.3cm,rightskip=.3cm plus1fil]{title in head}%
+ \usebeamerfont*{frametitle}
+ \usebeamercolor[fg]{frametitle}
+ \ifx\insertpart\@empty%
+ \else%
+ \insertpart: %
+ \fi%
+ \insertsectionhead%
+ \end{beamercolorbox}%
+ \vskip1em\par%
+}
% Stolen from the miniframes theme and modified.
\setbeamertemplate{footline}{
- \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
- \end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author/framecount in foot}%
\insertauthor%
\hfill%
\usebeamertemplate{page number in head/foot}%
\end{beamercolorbox}%
- \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
- \end{beamercolorbox}
}
% Create a slide introducing new sections.
\AtBeginSection[]{
\begin{frame}
- \frametitle{
- \ifx\insertpart\@empty%
- \else%
- Part \thepart, %
- \fi%
- Section \thesection
- }
\vfill
\begin{center}
\usebeamerfont{title}
\end{frame}
}
-% Define a new ``partsecframe'' environment that uses a default frame
-% title of ``<part>: <section>'' when no other frame title is given.
-\newenvironment{partsecframe}[1][%
- \ifx\insertpart\@empty%
- \else%
- \insertpart: %
- \fi%
- \insertsectionhead%
-]
- {\begin{frame}{#1}\vskip1em\par}
- {\end{frame}}
-
% Define a new ``refsframe'' environment for the bibliography.
% It automatically handles the frame breaks, and fixes the busted
% vertical spacing on slides >= 2. The extra curly braces ensure that
\begin{part}{Part one}
\begin{section}{Section one}
- \begin{partsecframe}
+ \begin{frame}
Hello, these are bullet points:
\begin{itemize}
\begin{item}
Et cetera
\end{item}
\end{itemize}
- \end{partsecframe}
+ \end{frame}
\end{section}
\begin{section}{Section two}
- \begin{partsecframe}
+ \begin{frame}
Much slide
\begin{theorem*}
And its proof.
\end{proof}
\end{theorem*}
- \end{partsecframe}
- \begin{partsecframe}
+ \end{frame}
+ \begin{frame}
So presentation
- \end{partsecframe}
+ \end{frame}
\end{section}
\end{part}
\begin{part}{The other part}
\begin{section}{Section three}
- \begin{partsecframe}
+ \begin{frame}
You get the idea
- \end{partsecframe}
+ \end{frame}
\end{section}
\end{part}
\begin{section}{Section four (no part)}
- \begin{partsecframe}
+ \begin{frame}
Everybody gets a free slide!
- \end{partsecframe}
+ \end{frame}
\end{section}
\end{document}