4 Commits

Author SHA1 Message Date
d898c48619 Add exercise title 2025-10-23 00:39:04 +02:00
91cf66a544 Add tutorial 1 exercise slides 2025-10-23 00:17:44 +02:00
34769737b0 Add green blocks to slides 2025-10-22 22:56:08 +02:00
51718e4749 Use new CEL latex template 2025-10-20 11:32:18 +02:00
10 changed files with 443 additions and 96 deletions

3
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule "lib/latex-common"]
path = lib/latex-common
url = ssh://git@git.mercurial-manifold.eu:2224/an.tsouchlos/latex-common.git
[submodule "lib/cel-slides-template-2025"]
path = lib/cel-slides-template-2025
url = ssh://git@git.mercurial-manifold.eu:2224/an.tsouchlos/cel-slides-template-2025.git

View File

@@ -1,8 +1,11 @@
all:
mkdir -p build/build
latexmk src/template/presentation.tex
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk src/template/presentation.tex
mv build/presentation.pdf build/presentation_template.pdf
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk src/2025-11-07/presentation.tex
mv build/presentation.pdf build/presentation_2025-11-07.pdf
clean:
rm -rf build

View File

View File

@@ -0,0 +1,282 @@
\documentclass[de]{CELbeamer}
%
%
% CEL Template
%
%
\newcommand{\templates}{preambles}
\input{\templates/packages.tex}
\input{\templates/macros.tex}
\grouplogo{CEL_logo.pdf}
\groupname{Communication Engineering Lab (CEL)}
\groupnamewidth{80mm}
\fundinglogos{}
%
%
% Custom commands
%
%
\input{lib/latex-common/common.tex}
\pgfplotsset{colorscheme/rocket}
%TODO: Fix path
\newcommand{\res}{src/template/res}
% \tikzstyle{every node}=[font=\small]
% \captionsetup[sub]{font=small}
%
%
% Document setup
%
%
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{spy, external, intersections}
%\tikzexternalize[prefix=build/]
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{fillbetween}
\usepackage{enumerate}
\usepackage{listings}
\usepackage{subcaption}
\usepackage{bbm}
\usepackage{multirow}
\usepackage{xcolor}
\title{WT Tutorium 1}
\author[Tsouchlos]{Andreas Tsouchlos}
\date[]{\today}
%
%
% Document body
%
%
\begin{document}
\begin{frame}[title white vertical, picture=images/IMG_7801-cut]
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Aufgabe 1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Theorie}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Relevante Theorie I}
\begin{columns}
\column{\kitthreecolumns}
\begin{greenblock}{Zufallsvariablen (ZV)}%
\vspace*{-6mm}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
\end{greenblock}
\column{\kitthreecolumns}
\begin{greenblock}{Important Equations}%
\vspace*{-6mm}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
\end{greenblock}
\end{columns}
\begin{greenblock}{Normalverteilung}
\begin{columns}
\column{\kitthreecolumns}
\begin{gather*}
\text{Normalverteilung:} \hspace{8mm}
f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}}
e^{-\frac{(x - \mu)^2}{2\sigma^2}}
\end{gather*}
\column{\kitthreecolumns}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
domain=-4:4,
samples=100,
width=11cm,
height=6cm,
ticks=none,
xlabel={$x$},
ylabel={$f_X(x)$}
]
\addplot+[mark=none, line width=1pt] {exp(-x^2)};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{columns}
\end{greenblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Aufgabe}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Aufgabe 1: Ergebnisraum \& Hypergeometrische\\ Verteilung}
Bei einem Kartenspiel erhält ein Spieler 5 Karten aus einem Deck
von 52 Karten (bestehend aus
13 Arten mit je 4 Farben). Wie groß ist die Wahrscheinlichkeit,
dass der Spieler
% tex-fmt: off
\begin{enumerate}[a{)}]
\item mindestens ein Ass hat?
\item genau ein Ass hat?
\item mindestens zwei Karten der gleichen Art (“Paar”) hat?
\end{enumerate}
% tex-fmt: on
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Aufgabe 2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Theorie}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Relevante Theorie II}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
\begin{figure}
\centering
\begin{subfigure}[c]{0.5\textwidth}
\centering
\begin{gather*}
\text{Normalverteilung:} \hspace{8mm}
f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}}
e^{-\frac{(x - \mu)^2}{2\sigma^2}}
\end{gather*}
\end{subfigure}%
\begin{subfigure}[c]{0.4\textwidth}
\centering
\begin{tikzpicture}
\begin{axis}[
domain=-4:4,
samples=100,
width=\textwidth,
height=0.5\textwidth,
ticks=none,
xlabel={$x$},
ylabel={$f_X(x)$}
]
\addplot+[mark=none, line width=1pt] {exp(-x^2)};
\end{axis}
\end{tikzpicture}
\end{subfigure}
\end{figure}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Aufgabe}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Aufgabe 2: Variationen \& Permutationen}
Aufgabe 2: Variationen \& Permutationen
Ein Burgerrestaurant bietet verschiedene Burger mit den Zutaten Salat
(S), Käse (K), Tomate (T)
und Patty (P) an. Diese werden zufällig für die Zubereitung eines
Burgers ausgewählt.
% tex-fmt: off
\begin{enumerate}[a{)}]
\item Die Ergebnismenge sei $\Omega = \{S, K, T, P\}$. Wie lautet die
Potenzmenge $P(\Omega)$?
\item Für einen normalen Burger werden 3 der 4 möglichen Zutaten
ausgewählt und in einer
bestimmten Reihenfolge auf das Burgerbrötchen gelegt. Wie viele
verschiedene normale
Burger gibt es?
\item Ein Burger ``Spezial'' besteht ebenfalls aus 3 Zutaten. Jedoch
können Tomate und Salat
doppelt vorkommen. Wie viele verschiedene Burger „Spezial“ gibt es?
\item Der Burger „Jumbo“ enthält die folgende Menge an Zutaten: $\{S, S,
T, T, K, K, K, P, P, P\}$
die alle verwendet werden. Wie viele mögliche Belegungen des Burgers
``Jumbo'' gibt es?
\end{enumerate}
% tex-fmt: on
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Zusammenfassung}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Zusammenfassung}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
\begin{figure}
\centering
\begin{subfigure}[c]{0.5\textwidth}
\centering
\begin{gather*}
\text{Normalverteilung:} \hspace{8mm}
f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}}
e^{-\frac{(x - \mu)^2}{2\sigma^2}}
\end{gather*}
\end{subfigure}%
\begin{subfigure}[c]{0.4\textwidth}
\centering
\begin{tikzpicture}
\begin{axis}[
domain=-4:4,
samples=100,
width=\textwidth,
height=0.5\textwidth,
ticks=none,
xlabel={$x$},
ylabel={$f_X(x)$}
]
\addplot+[mark=none, line width=1pt] {exp(-x^2)};
\end{axis}
\end{tikzpicture}
\end{subfigure}
\end{figure}
\end{frame}
\end{document}

3
src/template/.latexmkrc Normal file
View File

@@ -0,0 +1,3 @@
$pdflatex="pdflatex -shell-escape -interaction=nonstopmode -synctex=1 %O %S -cd ./../..";
$out_dir = "build";
$pdf_mode = 1;

1
src/template/lib Symbolic link
View File

@@ -0,0 +1 @@
/home/andreas/Documents/kit/wt-tut/presentations/lib

View File

View File

@@ -1,4 +1,42 @@
\documentclass[10pt, aspectratio=169, usenames, dvipsnames]{beamer}
\documentclass[de]{CELbeamer}
%
%
% CEL Template
%
%
\newcommand{\templates}{preambles}
\input{\templates/packages.tex}
\input{\templates/macros.tex}
\grouplogo{CEL_logo.pdf}
\groupname{Communication Engineering Lab (CEL)}
\groupnamewidth{80mm}
\fundinglogos{}
%
%
% Custom commands
%
%
\input{lib/latex-common/common.tex}
\pgfplotsset{colorscheme/rocket}
%TODO: Fix path
\newcommand{\res}{src/template/res}
% \tikzstyle{every node}=[font=\small]
% \captionsetup[sub]{font=small}
%
%
% Document setup
%
%
\usepackage{tikz}
\usepackage{tikz-3dplot}
@@ -15,68 +53,10 @@
\usepackage{multirow}
\usepackage{xcolor}
%\usepackage[outputdir=build/]{minted}
\usepackage{minted}
\usemintedstyle{gruvbox-light}
%\definecolor{gruvbox-bg}{HTML}{282828}
\definecolor{gruvbox-bg}{HTML}{f2e5bc}
%
%
% Custom commands
%
%
\input{lib/latex-common/common.tex}
\pgfplotsset{colorscheme/rocket}
%TODO: Fix path
\newcommand{\res}{src/template/res}
%
%
% CEL Template
%
%
\newcommand{\templates}{lib/cel-template}
\newbool{EnglishLanguage}
\input{\templates/packages.tex}
\input{\templates/modifications.tex}
\input{\templates/makros_own.tex}
% % Change the way the overview is displayed
% \AtBeginSection[]
% {
% \begin{frame}[t]
% \frametitle{Overview}
% \tableofcontents[sectionstyle=show/shaded,
% subsectionstyle=show/show/shaded,
% subsubsectionstyle=hide]
% \end{frame}
% }
% \AtBeginSubsubsection[]{}
% \AtBeginSubsection[]{}
%
%
% Set up document
%
%
\title{Wahrscheinlichkeitstheorie Tutorium 1} %TODO: Change number
\subtitle{\small 08.05.2025} % TODO: Change date
\author{\vspace{1.5mm} Andreas Tsouchlos}
\date{ }
\institute{Karlsruhe Institute of Technology (KIT),
\\ Communications Engineering Lab (CEL) }
\tikzstyle{every node}=[font=\small]
\captionsetup[sub]{font=small}
\title{WT Tutorium 1}
\author[Tsouchlos]{Andreas Tsouchlos}
\date[]{\today}
%
%
@@ -86,41 +66,60 @@
\begin{document}
\begin{frame}[plain]
\maketitle
\begin{frame}[title white vertical, picture=images/IMG_7801-cut]
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Aufgabe 1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Theorie}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Relevante Theorie I}
\eqbox{
\begin{columns}
\column{\kitthreecolumns}
\begin{greenblock}{Zufallsvariablen (ZV)}%
\vspace*{-6mm}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
}
\end{greenblock}
\begin{figure}
\centering
\column{\kitthreecolumns}
\begin{greenblock}{Important Equations}%
\vspace*{-6mm}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
\end{greenblock}
\end{columns}
\begin{subfigure}[c]{0.5\textwidth}
\centering
\begin{greenblock}{Normalverteilung}
\begin{columns}
\column{\kitthreecolumns}
\begin{gather*}
\text{Normalverteilung:} \hspace{8mm}
f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}}
e^{-\frac{(x - \mu)^2}{2\sigma^2}}
\end{gather*}
\end{subfigure}%
\begin{subfigure}[c]{0.4\textwidth}
\column{\kitthreecolumns}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
domain=-4:4,
samples=100,
width=\textwidth,
height=0.5\textwidth,
width=11cm,
height=6cm,
ticks=none,
xlabel={$x$},
ylabel={$f_X(x)$}
@@ -128,10 +127,14 @@
\addplot+[mark=none, line width=1pt] {exp(-x^2)};
\end{axis}
\end{tikzpicture}
\end{subfigure}
\end{figure}
\end{columns}
\end{greenblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Aufgabe}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{2022H - Aufgabe 4}
@@ -169,17 +172,21 @@
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Aufgabe 2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Theorie}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Relevante Theorie II}
\eqbox{
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
}
\begin{figure}
\centering
@@ -211,6 +218,9 @@
\end{figure}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Aufgabe}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{2022H - Aufgabe 4}
@@ -247,5 +257,48 @@
\end{enumerate}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Zusammenfassung}
% TODO: Replace slide content with relevant stuff
\begin{frame}
\frametitle{Zusammenfassung}
\begin{gather*}
f_X(x) := \frac{d}{dx} F_X(x) \\
P(X \le x) = F_X(x) = \int_{-\infty}^{x} f_X(t) dt \\
E(X) = \int_{-\infty}^{\infty} x\cdot f_X(x) dx
\end{gather*}
\begin{figure}
\centering
\begin{subfigure}[c]{0.5\textwidth}
\centering
\begin{gather*}
\text{Normalverteilung:} \hspace{8mm}
f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}}
e^{-\frac{(x - \mu)^2}{2\sigma^2}}
\end{gather*}
\end{subfigure}%
\begin{subfigure}[c]{0.4\textwidth}
\centering
\begin{tikzpicture}
\begin{axis}[
domain=-4:4,
samples=100,
width=\textwidth,
height=0.5\textwidth,
ticks=none,
xlabel={$x$},
ylabel={$f_X(x)$}
]
\addplot+[mark=none, line width=1pt] {exp(-x^2)};
\end{axis}
\end{tikzpicture}
\end{subfigure}
\end{figure}
\end{frame}
\end{document}

1
src/template/src Symbolic link
View File

@@ -0,0 +1 @@
/home/andreas/Documents/kit/wt-tut/presentations/src