Commit 8095fab3 authored by Leonard Fisser's avatar Leonard Fisser 🐸
Browse files

Merge branch 'section_slides'

parents 9c1d00fc d461a082
Pipeline #161428 passed with stage
in 1 minute and 36 seconds
...@@ -17,9 +17,11 @@ ...@@ -17,9 +17,11 @@
\definecolor{tuhhSlideRed}{RGB}{255,79,79} \definecolor{tuhhSlideRed}{RGB}{255,79,79}
\definecolor{tuhhSlideGrey}{RGB}{242,242,242} \definecolor{tuhhSlideGrey}{RGB}{242,242,242}
\definecolor{tuhhSlidePink}{RGB}{255,150,209}
\setbeamercolor*{tuhh teal}{fg=tuhhTeal} \setbeamercolor*{tuhh teal}{fg=tuhhTeal}
\setbeamercolor*{tuhh slideGrey}{fg=tuhhSlideGrey} \setbeamercolor*{tuhh slideGrey}{fg=tuhhSlideGrey}
\setbeamercolor*{tuhh slidePink}{fg=tuhhSlidePink}
\setbeamercolor*{tuhh slideRed}{fg=tuhhSlideRed} \setbeamercolor*{tuhh slideRed}{fg=tuhhSlideRed}
\setbeamercolor*{tuhh slideViolet}{fg=tuhhTecViolet} \setbeamercolor*{tuhh slideViolet}{fg=tuhhTecViolet}
......
...@@ -133,6 +133,69 @@ ...@@ -133,6 +133,69 @@
} }
\defbeamertemplate*{section page polka}{tuhh}[1][]
{
\setbeamertemplate{background}{
\begin{tikzpicture}
\begin{beamercolorbox}{tuhh teal}
\node[outer sep=0, inner sep=0, anchor=west] (thank you) at (18.08mm, \the\paperheight-15.99mm-44.22mm) {\usebeamerfont{title} \hypersetup{hidelinks} \insertsectionnumber. \insertsection};
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\node[outer sep=0, inner sep=0, anchor=center] (tuhh_logo) at (\the\paperwidth-5.34mm-16.05mm, \the\paperheight-16.05mm-12.91mm) {\includegraphics[width=25.82mm, height=25.82mm, keepaspectratio]{\frameicon}};
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
%date
\node[rectangle,
minimum width = 32.10mm,
minimum height = 15.99mm,
text width = 32.10mm,
align=center,
outer sep = 0mm,
inner sep = 0.0mm,
anchor = west,
] at (301.22mm, \the\paperheight-5.24mm-180.00mm) {\usebeamerfont{date_small}\insertdate};
%slide number
\node[rectangle,
minimum width = 32.10mm,
minimum height = 4.0mm,
text width = 32.10mm,
align=center,
outer sep = 0mm,
inner sep = 0.0mm,
anchor = west,
] at (301.22mm, \the\paperheight-140.26mm) {\usebeamerfont{frame_number}\insertframenumber};
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\node[rectangle,
draw,
line width = 1pt,
minimum width = 327.91mm,
minimum height = 179.99mm,
outer sep = 5.34mm,
anchor = south west,
] at (0, 0) {};
\draw[line width = 1pt] (5.33mm, \the\paperheight-95.25mm) -- (5.33mm+328.00mm, \the\paperheight-95.25mm) {};
%mid horz 1
\draw[line width = 1pt] (301.22mm, \the\paperheight-95.25mm) -- (301.22mm+32.10mm, \the\paperheight-95.25mm) {};
%lower horz 1
\draw[line width = 1pt] (301.22mm, \the\paperheight-169.25mm) -- (301.22mm+32.10mm, \the\paperheight-169.25mm) {};
%first vert
\draw[line width = 1pt] (301.22mm, \the\paperheight-5.24mm) -- (301.22mm, \the\paperheight-5.24mm-180.00mm) {};
%polka dots
\usebeamercolor{tuhh slideGrey}
\foreach \x in {0,...,41} {
\foreach \y in {0,...,4} {
\draw[fg,fill=fg] (18.08mm+6.33mm*\x+5.34mm, \the\paperheight-117.5mm-13.64mm*\y+3.75mm) circle(1mm);
}
}
\usebeamercolor{tuhh slidePink}
\draw[fg,fill=fg] (18.08mm+6.33mm*8+5.34mm, \the\paperheight-117.5mm-13.64mm*2+3.75mm) circle(3mm);
\end{beamercolorbox}%
\end{tikzpicture}
}
}
% Title page % Title page
\defbeamertemplate*{titlepage_frame}{tuhh}[1][] \defbeamertemplate*{titlepage_frame}{tuhh}[1][]
{ {
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
{} {}
{} {}
% Finalpage definition % Agendaframe definition
\makeatletter \makeatletter
\define@key{beamerframe}{agenda}[true]{% \define@key{beamerframe}{agenda}[true]{%
\setbeamertemplate{content_frame}{\usebeamertemplate{agenda_frame}} \setbeamertemplate{content_frame}{\usebeamertemplate{agenda_frame}}
...@@ -140,6 +140,14 @@ ...@@ -140,6 +140,14 @@
} }
\makeatother \makeatother
% Section slide definitions
\makeatletter
\define@key{beamerframe}{section polka}[true]{%
\setbeamertemplate{content_frame}{\usebeamertemplate{section page polka}}
\usebeamertemplate{content_frame}%
}
\makeatother
% Plain page definition % Plain page definition
\makeatletter \makeatletter
\define@key{beamerframe}{plain}[true]{% \define@key{beamerframe}{plain}[true]{%
...@@ -189,4 +197,10 @@ ...@@ -189,4 +197,10 @@
\renewcommand{\frameicon}{#2} \renewcommand{\frameicon}{#2}
} }
\AtBeginSection[]
{
\begin{frame}[section polka]
\end{frame}
}
\mode<all> \mode<all>
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[backend=biber,style=ieee]{biblatex} \usepackage[backend=biber,style=ieee]{biblatex}
\title{Title/Headline of Hamburg University of Technology Presentation} \title{Title/Headline of Hamburg University of Technology Presentation}
\date{\today} % or \date{dd}{mm}{yyyy} or \date{Text} \date{\today} % or \date{dd}{mm}{yyyy} or \date{Text}
\author[Corresponding Author]{First Author, Second Author} \author[Corresponding Author]{First Author, Second Author}
...@@ -26,10 +27,8 @@ ...@@ -26,10 +27,8 @@
\tableofcontents \tableofcontents
\end{frame} \end{frame}
\begin{frame}{This is a presentation slide!} \section{Environments}\label{se:environments}
\section{Example: Item Lists}\label{se:exp_lists} \begin{frame}{List Environments}
\subsection{Example: Sub-Item Lists}
\begin{minipage}{0.49\textwidth} \begin{minipage}{0.49\textwidth}
\begin{itemize} \begin{itemize}
\item This is an item. \item This is an item.
...@@ -50,9 +49,34 @@ ...@@ -50,9 +49,34 @@
\end{minipage} \end{minipage}
\end{frame} \end{frame}
\begin{frame}{This is a second presentation slide!} \begin{frame}{Block Environments}
\section{Example: Font Sizes} \begin{block}{My Block}
This is a block with a title.
\end{block}
\begin{definition}
A \emph{sequence} is a mapping from $\mathbb{N}$ to a field of numbers.
\end{definition}
\begin{theorem}[Bolzano--Weierstrass]
Every bounded sequence of real numbers has a convergent subsequence.
\end{theorem}
\begin{proof}
Here comes the proof.
\end{proof}
\end{frame}
\begin{frame}{Figure Environment}
\begin{figure}
\centering
\includegraphics[width=0.8\textwidth]{.theme_imgs/TUHH_building-a.pdf}
\caption{Figures work as usual and support JPG, PNG or PDF files.\label{fig:test_image}}
\end{figure}
\end{frame}
\section{Fonts}
\begin{frame}{Font Sizes}
\centering{\textbf{This is the place where you can write your content in bold.}} \centering{\textbf{This is the place where you can write your content in bold.}}
\centering{\textit{This is the place where you can write your content in italic.}} \centering{\textit{This is the place where you can write your content in italic.}}
...@@ -64,9 +88,7 @@ ...@@ -64,9 +88,7 @@
\centering{But if your sentences get too long, you cannot be sure that the whole sentence will fit into the same line - You might get a linebreak!} \centering{But if your sentences get too long, you cannot be sure that the whole sentence will fit into the same line - You might get a linebreak!}
\end{frame} \end{frame}
\begin{frame}{Wow even a third slide!} \begin{frame}{Footnotes}
\section{Example: Footnotes}
You can use footnotes\footnote{Hello from down here!}! You can use footnotes\footnote{Hello from down here!}!
You can even have multiple footnotes\footnote{Hello again!}! You can even have multiple footnotes\footnote{Hello again!}!
...@@ -74,28 +96,9 @@ ...@@ -74,28 +96,9 @@
What about really long footnotes\footnote{Let's see how long we can make this footnote, just to make sure you can put everything you want here!}? What about really long footnotes\footnote{Let's see how long we can make this footnote, just to make sure you can put everything you want here!}?
\end{frame} \end{frame}
\begin{frame}{Blocks, Definitions, Theorems and Proofs}
\section{Example: Blocks, Definitions, Theorems and Proofs}
\begin{block}{My Block}
This is a block with a title.
\end{block}
\begin{definition}
A \emph{sequence} is a mapping from $\mathbb{N}$ to a field of numbers.
\end{definition}
\begin{theorem}[Bolzano--Weierstrass]
Every bounded sequence of real numbers has a convergent subsequence.
\end{theorem}
\begin{proof}
Here comes the proof.
\end{proof}
\end{frame}
\section{Tables}
\begin{frame}{Tables} \begin{frame}{Tables}
\section{Example: Tables}
\begin{table} \begin{table}
\begin{tuhhtabular}{|l|l|} \begin{tuhhtabular}{|l|l|}
\multicolumn{2}{c}{\tuhhHead{TU Table for Presentations}} \\ \multicolumn{2}{c}{\tuhhHead{TU Table for Presentations}} \\
...@@ -130,22 +133,14 @@ ...@@ -130,22 +133,14 @@
\end{table} \end{table}
\end{frame} \end{frame}
\begin{frame}{How to insert an image} \section{Miscellaneous}
\section{New image}
\begin{figure}
\centering
\includegraphics[width=0.8\textwidth]{.theme_imgs/TUHH_building-a.pdf}
\caption{Figures work as usual and support JPG, PNG or PDF files.\label{fig:test_image}}
\end{figure}
\end{frame}
\begin{frame}{Miscellaneous} \begin{frame}{Miscellaneous}
Collection of \LaTeX~commands and their appearance in this template: Collection of \LaTeX~commands and their appearance in this template:
\begin{itemize} \begin{itemize}
\item Citations using \textit{cite}: \cite{tuhh2022demo} \item Citations using \textit{cite}: \cite{tuhh2022demo}
\item Hyperlinks using \textit{href}: \href{https://www.tuhh.de}{https://www.tuhh.de} \item Hyperlinks using \textit{href}: \href{https://www.tuhh.de}{https://www.tuhh.de}
\item Hyperlinks using \textit{url}: \url{https://www.tuhh.de} \item Hyperlinks using \textit{url}: \url{https://www.tuhh.de}
\item Document references using \textit{ref}: Section \ref{se:exp_lists} \item Document references using \textit{ref}: Section \ref{se:environments}
\end{itemize} \end{itemize}
\end{frame} \end{frame}
......
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