Use new CEL latex template

This commit is contained in:
Andreas Tsouchlos 2025-10-20 11:32:18 +02:00
parent 14f7dfeae3
commit 36dea73341
5 changed files with 120 additions and 79 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,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

@ -0,0 +1 @@
Subproject commit a5970b77e65d5a66afa97813f11ed6315ebc878c

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,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}