From 84c9132865c73d9444d087d438fb0d1f82bdc642 Mon Sep 17 00:00:00 2001 From: Jannik Dunkelau <jannik.dunkelau@hhu.de> Date: Wed, 15 Sep 2021 17:07:18 +0200 Subject: [PATCH] Introduce separator slides and proper formating of elements --- beamercolorthemehhubeamer.sty | 15 +++++---- beamerinnerthemehhubeamer.sty | 55 ++++++++++++++++++++++++++----- presentation.tex | 61 +++++++++++++++++++++++++++++++++-- 3 files changed, 113 insertions(+), 18 deletions(-) diff --git a/beamercolorthemehhubeamer.sty b/beamercolorthemehhubeamer.sty index 2deec6b..76aa427 100644 --- a/beamercolorthemehhubeamer.sty +++ b/beamercolorthemehhubeamer.sty @@ -25,13 +25,13 @@ \setbeamercolor{title}{fg = hhublue} % In case you choose to display the Table of Contents, or the Outline slide. -\setbeamercolor{section in toc}{fg = black} -\setbeamercolor{section in toc shaded}{fg = hhuiceblue} +\setbeamercolor{section in toc}{bg=hhublue, fg = black} +\setbeamercolor{subsection in toc}{fg = black} -% The colour of all the items, subitems and and subsubitems are set to black. -\setbeamercolor{item}{fg = black} -\setbeamercolor{subitem}{fg = black} -\setbeamercolor{subsubitem}{fg = black} +% The colour of all the items, subitems and subsubitems. +\setbeamercolor{item}{fg = hhublue} +\setbeamercolor{subitem}{fg = hhuiceblue!65} +\setbeamercolor{subsubitem}{fg = hhucyan!65} % This sets the color for each item heading of the description environment. \setbeamercolor{description item}{fg = hhublue} @@ -40,7 +40,8 @@ \setbeamercolor{caption}{fg = black} \setbeamercolor{caption name}{fg = hhublue} -% \setbeamercolor{background canvas}{bg = white} +\setbeamercolor{structure}{fg=hhublue} +\setbeamercolor{alerted text}{fg=red} \mode <all> diff --git a/beamerinnerthemehhubeamer.sty b/beamerinnerthemehhubeamer.sty index fb40069..a66c516 100644 --- a/beamerinnerthemehhubeamer.sty +++ b/beamerinnerthemehhubeamer.sty @@ -11,7 +11,7 @@ {% %% Heine \begin{textblock}{0}[0,0](-10,22.5) - % tim={left lower right upper} + % trim={left lower right upper} {\includegraphics[trim={10cm 8.65cm 0 7.5cm},clip,width=5.8cm]% {fig/template/Heine.jpg}} \end{textblock} @@ -41,7 +41,7 @@ % Frame title \defbeamertemplate*{frametitle}{hhubeamer}[1][] -{ +{% \begin{beamercolorbox}[wd=\paperwidth,ht=2.11cm]{frametitle} \begin{tikzpicture} \useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,2.11); @@ -63,21 +63,60 @@ \end{beamercolorbox} } +\BeforeBeginEnvironment{frame}{% + \setbeamertemplate{frametitle}[hhubeamer]% +} + +\define@key{beamerframe}{separator}[true]{% + \setbeamertemplate{frametitle}[separator]% +} + +\defbeamertemplate*{frametitle}{separator} +{% + %% Heine + \begin{textblock}{0}[0,0](-10,-10.5) + {\includegraphics[trim={10cm 8cm 0 0},clip,width=6.95cm]% + {fig/template/Heine.jpg}} + \end{textblock} + \begin{beamercolorbox}[wd=\paperwidth,ht=2.11cm]{frametitle} + \begin{tikzpicture} + \useasboundingbox[](0,0) rectangle(\the\paperwidth,2.11); + % Logo + \node at (0,0) {}; + \node[anchor=south] at (14.5,-.02) {\includegraphics[height=16.8mm]{fig/template/HHU-vertikal.pdf}}; + \end{tikzpicture} + \end{beamercolorbox} + \begin{textblock}{130}(10,35)% + \ifx\insertframesubtitle\@empty% + \begin{flushright} + \huge\insertframetitle% + \end{flushright} + \else% + \begin{flushright} + \huge\insertframetitle% + \end{flushright} + \begin{flushright} + \Large\insertframesubtitle% + \end{flushright} + \fi + \end{textblock} +} + % itemize -\setbeamercolor*{itemize item}{fg=hhublue} \setbeamertemplate{itemize items}[circle] -% enumerate -\setbeamercolor*{enumerate item}{fg=hhublue} -% \setbeamertemplate{itemize items}[circle] - % toc \setbeamertemplate{section in toc}{{\color{hhublue}\inserttocsectionnumber.}~~\inserttocsection} +\setbeamertemplate{section in toc shaded}[default][40] \setbeamertemplate{subsection in toc}{% \hspace{5mm}{\raisebox{.6mm}{% - \tikz\draw[hhuiceblue!65,fill=hhuiceblue!65] (0,0) circle (.3ex);}}% + \tikz\draw[hhuiceblue!70,fill=hhuiceblue!70] (0,0) circle (.3ex);}}% ~~\inserttocsection} +\setbeamertemplate{subsection in toc shaded}{% + \hspace{5mm}{\raisebox{.6mm}{% + \tikz\draw[hhuiceblue!70,fill=hhuiceblue!70] (0,0) circle (.3ex);}}% + ~~\color{black!40}\inserttocsection} \mode diff --git a/presentation.tex b/presentation.tex index b1e5d14..127ec47 100644 --- a/presentation.tex +++ b/presentation.tex @@ -58,16 +58,71 @@ \section{Lorem Ipsum} \begin{frame} \frametitle{Titel + Inhalt} - \begin{itemize} - \item Laboris nisi dolor duis nulla non irure anim sit incididunt. + + \begin{description} + \item[First] Laboris nisi dolor duis nulla non irure anim sit incididunt. Occaecat dolore occaecat in consectetur. Officia ex anim consequat duis tempor nostrud dolore exercitation. - \item Sit dolor velit ipsum amet. + \item[Second] Sit dolor velit ipsum amet. Consequat sunt proident eu adipisicing sint. Deserunt duis deserunt laborum duis pariatur deserunt ut. Aliqua sint consequat cupidatat ex. Excepteur velit veniam non amet. + \end{description} +\end{frame} + + +\section{Lorem Ipsum} +\begin{frame} + \frametitle{Beamer-Befehle} + + \begin{itemize} + \item Here is a \structure{structure} in a sentence. + \item Here is an \alert{alert} in a sentence. \end{itemize} \end{frame} +\subsection{Lorem Ipsum} +\begin{frame} + \frametitle{Current Section} + + \tableofcontents[currentsection] +\end{frame} + + +\begin{frame}[separator] + \frametitle{Thanks} +\end{frame} + + +\begin{frame}[separator] + \frametitle{Separator with longer title} +\end{frame} + + +\begin{frame}[separator] + \frametitle{Separator with} + \framesubtitle{subtitle below the caption} +\end{frame} + + +\section{Lorem Ipsum} +\begin{frame} + \frametitle{Titel + Inhalt} + + \begin{description} + \item[First] Laboris nisi dolor duis nulla non irure anim sit incididunt. + Occaecat dolore occaecat in consectetur. + Officia ex anim consequat duis tempor nostrud dolore exercitation. + \item[Second] Sit dolor velit ipsum amet. + Consequat sunt proident eu adipisicing sint. + Deserunt duis deserunt laborum duis pariatur deserunt ut. + Aliqua sint consequat cupidatat ex. Excepteur velit veniam non amet. + \end{description} +\end{frame} + +\begin{frame} + Empty frame layout +\end{frame} + \end{document} -- GitLab