Commit bd954957 authored by Jannik Dunkelau's avatar Jannik Dunkelau
Browse files

Implement empty slides and support missing frametitles

parent 84c91328
......@@ -38,6 +38,10 @@
\vfill
}
% make beamer always use the frametitle template, even if frametitle is empty
\RequirePackage{etoolbox}
\patchcmd{\endbeamer@frameslide}{\ifx\beamer@frametitle\@empty}{\iffalse}{}{\errmessage{failed to patch}}
% Frame title
\defbeamertemplate*{frametitle}{hhubeamer}[1][]
......@@ -45,22 +49,28 @@
\begin{beamercolorbox}[wd=\paperwidth,ht=2.11cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,2.11);
% D on the left
\fill[hhublue] (0,1.4) rectangle ++(0.3,-0.5);
\fill[hhublue] (0.3,1.15) circle (0.25);
% bottom line in header
\draw[hhuiceblue!65,thick] (.9,0.4) -- ++(12,0);
\ifx\insertframetitle\@empty%
\else%
% D on the left
\fill[hhublue] (0,1.4) rectangle ++(0.3,-0.5);
\fill[hhublue] (0.3,1.15) circle (0.25);
% bottom line in header
\draw[hhuiceblue!65,thick] (.9,0.4) -- ++(12,0);
\fi
% Logo
\node[anchor=south] at (14.5,-.02) {\includegraphics[height=16.8mm]{fig/template/HHU-vertikal.pdf}};
% Captions
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, hhublue,font=\LARGE] at (.75,1.22){\insertframetitle};}
\else%
\else%
{\node[anchor=west, hhublue,font=\LARGE] at (.75,1.22){\insertframetitle};
\node[anchor=west, hhublue,font=\large] at (.75,0){\insertframesubtitle};}%
\fi
\fi
\end{tikzpicture}
\end{beamercolorbox}
\ifx\insertframetitle\@empty%
\vspace{-1.5cm}
\fi
}
\BeforeBeginEnvironment{frame}{%
......@@ -71,6 +81,10 @@
\setbeamertemplate{frametitle}[separator]%
}
\define@key{beamerframe}{empty}[true]{%
\setbeamertemplate{frametitle}[empty]%
}
\defbeamertemplate*{frametitle}{separator}
{%
%% Heine
......@@ -102,6 +116,10 @@
\end{textblock}
}
\defbeamertemplate*{frametitle}{empty}[1][]
{%
\vspace{.64cm}
}
% itemize
\setbeamertemplate{itemize items}[circle]
......
\RequirePackage{tikz}
% Frame title
% \defbeamertemplate*{frametitle}{lucid}[1][]{
% % \vskip0.5cm%
% % \begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
% % \begin{tikzpicture}
% % \useasboundingbox(0,0) rectangle(\the\paperwidth,1.2);
% % {\usebeamercolor[fg]{frametitle-left}}
% % \fill[color=frametitle-left.fg] (0.2,0) rectangle(\the\marginedPaperWidth,1.2);
% % \ifx\insertframesubtitle\@empty%
% % {\node[anchor=west] at (0.3,0.61){\usebeamerfont{frametitle}\insertframetitle};}
% % \else%
% % {\node[anchor= west] at (0.2,0.81){\usebeamerfont{frametitle}\insertframetitle};%
% % \node[anchor= west] at (0.4,0.25){\usebeamerfont{framesubtitle}-\insertframesubtitle};}%
% % \fi
% % \end{tikzpicture}
% % \end{beamercolorbox}
% }
\setbeamerfont{footer bar}{size=\scriptsize}
\setbeamerfont{footer bar small}{size=\scriptsize}
\setbeamerfont{footer bar tiny}{size=\tiny}
......
......@@ -99,6 +99,10 @@
\frametitle{Separator with longer title}
\end{frame}
\begin{frame}[separator]
% \frametitle{Separator without title}
\end{frame}
\begin{frame}[separator]
\frametitle{Separator with}
......@@ -122,7 +126,11 @@
\end{frame}
\begin{frame}
Empty frame layout
No frame title.
\end{frame}
\begin{frame}[empty]
No frame title, no logo.
\end{frame}
\end{document}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment