Commit 60cb420d authored by Leonard Fisser's avatar Leonard Fisser 🐸
Browse files

Merge branch '25-typesetting-clocks-and-theorems' into 'master'

Resolve "typesetting blocks and theorems"

Closes #25

See merge request !26
parents b45ad894 f14483a4
Pipeline #136529 passed with stage
in 1 minute and 16 seconds
......@@ -29,3 +29,17 @@
\setbeamercolor{normal text}{fg=tuhhText,bg=white}
\setbeamercolor{structure}{use=normal text, fg=normal text.fg}
% Box Definition
\setbeamercolor{block title}{fg=white,bg=tuhhTeal}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=tuhhTeal!10}
% colors for alertblock
% \setbeamercolor{block title alerted}{fg=white,bg=tuhhTecRed}
% \setbeamercolor{block body alerted}{parent=normal text,use=block
% title,bg=TuhhTecRed!30}
% % colors for exampleblock
% \setbeamercolor{block title example}{fg=white,bg=tuhhTecGreen} %
% \setbeamercolor{block body example}{parent=normal text,use=block
% title,bg=tuhhTecGreen!30} %
......@@ -10,5 +10,7 @@
\setbeamerfont{tuhh website}{size=\fontsize{27pt}{27pt}, series=\fontfamily{poppins}}
\setbeamerfont{thank you}{size=\fontsize{32pt}{32pt}, series=\fontfamily{poppins}}
\setbeamerfont{signature}{size=\fontsize{10pt}{10pt}, series=\fontfamily{poppins}}
\setbeamerfont{block body}{size=\fontsize{20pt}{24pt}, series=\fontfamily{poppins}}
\setbeamerfont{block title}{size=\fontsize{20pt}{24pt}, series=\fontfamily{poppins}}
\mode<all>
\ No newline at end of file
\mode<all>
......@@ -4,6 +4,7 @@
\usebeamertemplate{content_frame_background}
}
\defbeamertemplate*{content_frame_background}{tuhh}[1][]{
\setbeamertemplate{background}{
\begin{tikzpicture}
......@@ -315,6 +316,38 @@
}
}
% by https://tex.stackexchange.com/a/282988
% this fixes misalignment of theorem title and body
\setbeamertemplate{block begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=2mm]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title}
{}
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[colsep*=2mm,vmode]{block body}%
\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
}
%typesetting of theorems
%taken from beameruserguide p.12
\setbeamertemplate{theorem begin}
{%
\begin{\inserttheoremblockenv}
{%
\inserttheoremheadfont
\inserttheoremname
\inserttheoremnumber
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
\inserttheorempunctuation
}%
}
\setbeamertemplate{theorem end}{\end{\inserttheoremblockenv}}
% Allows for filled background tabular cells
\newcommand\tuhhHead[1]{%
\cellcolor{tuhhTeal}\textcolor{white}{#1}
......@@ -323,4 +356,4 @@
\newenvironment{tuhhtabular}{\arrayrulecolor{tuhhTeal}\color{tuhhTeal}\def\arraystretch{1.5}\tabular}{\endtabular\arrayrulecolor{tuhhText}\color{tuhhText}}
\mode
<all>
\ No newline at end of file
<all>
......@@ -23,7 +23,6 @@
\tableofcontents
\end{frame}
% Frame 1
\begin{frame}{This is a presentation slide!}
\section{Example: Item Lists}
\subsection{Example: Sub-Item Lists}
......@@ -48,7 +47,6 @@
\end{minipage}
\end{frame}
% Frame 2
\begin{frame}{This is a second presentation slide!}
\section{Example: Font Sizes}
......@@ -63,7 +61,6 @@
\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}
% Frame 2
\begin{frame}{Wow even a third slide!}
\section{Example: Footnotes}
......@@ -75,7 +72,27 @@
\end{frame}
\begin{frame}{Example: Tables}
\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}
\begin{frame}{Tables}
\section{Example: Tables}
\begin{table}
\begin{tuhhtabular}{|l|l|}
......@@ -113,4 +130,4 @@
\finalpage
\end{document}
\ No newline at end of file
\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