From 36dea73341368bc66d0b61969ade3d62f55712d6 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Mon, 20 Oct 2025 11:32:18 +0200 Subject: [PATCH] Use new CEL latex template --- .gitmodules | 3 + Makefile | 2 +- lib/cel-slides-template-2025 | 1 + src/template/presentation.bib | 0 src/template/presentation.tex | 193 ++++++++++++++++++++-------------- 5 files changed, 120 insertions(+), 79 deletions(-) create mode 160000 lib/cel-slides-template-2025 create mode 100644 src/template/presentation.bib diff --git a/.gitmodules b/.gitmodules index 8e71cd6..b41bc29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/Makefile b/Makefile index 810c351..5285a44 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ 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 clean: rm -rf build diff --git a/lib/cel-slides-template-2025 b/lib/cel-slides-template-2025 new file mode 160000 index 0000000..a5970b7 --- /dev/null +++ b/lib/cel-slides-template-2025 @@ -0,0 +1 @@ +Subproject commit a5970b77e65d5a66afa97813f11ed6315ebc878c diff --git a/src/template/presentation.bib b/src/template/presentation.bib new file mode 100644 index 0000000..e69de29 diff --git a/src/template/presentation.tex b/src/template/presentation.tex index d2846a6..9b342a3 100644 --- a/src/template/presentation.tex +++ b/src/template/presentation.tex @@ -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,21 +66,25 @@ \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{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{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 @@ -132,6 +116,9 @@ \end{figure} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{Aufgabe} + % TODO: Replace slide content with relevant stuff \begin{frame} \frametitle{2022H - Aufgabe 4} @@ -169,17 +156,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{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 +202,9 @@ \end{figure} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{Aufgabe} + % TODO: Replace slide content with relevant stuff \begin{frame} \frametitle{2022H - Aufgabe 4} @@ -247,5 +241,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}