14 Commits

9 changed files with 62 additions and 29 deletions

4
.gitignore vendored
View File

@@ -1 +1,5 @@
build/
src/*/.latexmkrc
src/*/lib
src/*/src

View File

@@ -6,6 +6,7 @@ RUN apt update -y && apt upgrade -y
RUN apt install make texlive latexmk texlive-pictures -y
RUN apt install texlive-publishers texlive-science texlive-fonts-extra texlive-latex-extra -y
RUN apt install biber texlive-bibtex-extra -y
RUN apt install texlive-lang-german -y
RUN apt install python3 python3-pygments -y

View File

@@ -1,11 +1,21 @@
all:
mkdir -p build/build
PRESENTATIONS := $(patsubst src/%/presentation.tex,build/presentation_%.pdf,$(wildcard src/*/presentation.tex))
HANDOUTS := $(patsubst build/presentation_%.pdf,build/presentation_%_handout.pdf,$(PRESENTATIONS))
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk src/template/presentation.tex
mv build/presentation.pdf build/presentation_template.pdf
.PHONY: all
all: $(PRESENTATIONS) $(HANDOUTS)
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk src/2025-11-07/presentation.tex
mv build/presentation.pdf build/presentation_2025-11-07.pdf
build/presentation_%.pdf: src/%/presentation.tex build/prepared
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk $<
mv build/presentation.pdf $@
build/presentation_%_handout.pdf: src/%/presentation.tex build/prepared
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk -pdflatex='pdflatex %O "\def\ishandout{1}\input{%S}"' $<
mv build/presentation.pdf $@
build/prepared:
mkdir -p build
touch build/prepared
.PHONY: clean
clean:
rm -rf build

18
README.md Normal file
View File

@@ -0,0 +1,18 @@
# WT Tutorial Presentations
This repository contains the latex source files for the WT Tutorial slides.
## Build
### Local Environment
```bash
$ make
```
### With Docker
```bash
$ docker build . -t wt-tut
$ docker run --rm -u `id -u`:`id -g` -w $PWD -v $PWD:$PWD wt-tut make
```

View File

@@ -1,4 +1,8 @@
\ifdefined\ishandout
\documentclass[de, handout]{CELbeamer}
\else
\documentclass[de]{CELbeamer}
\fi
%
%
@@ -140,6 +144,7 @@
\vspace*{0mm}
\end{columns}\pause
\item Laplace'sches Zufallsexperiment
% tex-fmt: off
\begin{gather*}
\text{Voraussetzungen: }\hspace{5mm} \left\{
\begin{array}{l}
@@ -151,6 +156,7 @@
\frac{\text{Anzahl ``günstiger''
Möglichkeiten}}{\text{Anzahl Möglichkeiten}}
\end{gather*}
% tex-fmt: on
\end{itemize}
\end{frame}
@@ -320,7 +326,8 @@
\mleft\{ A \mright\}, \mleft\{ B \mright\},
\mleft\{ C \mright\}, \mleft\{ A, B \mright\},\\
&\mleft\{ A, C \mright\},
\mleft\{ B, C \mright\}, \mleft\{ A, B, C \mright\} \}
\mleft\{ B, C \mright\}, \mleft\{ A, B, C
\mright\} \}
\end{align*}%
\vspace*{-14mm}%
\end{lightgrayhighlightbox}
@@ -515,10 +522,4 @@
% tex-fmt: on
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Zusammenfassung}
% TODO: Do we even want this section?
\end{document}

View File

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

View File

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

View File

@@ -1,4 +1,8 @@
\documentclass[de]{CELbeamer}
\ifdefined\ishandout
\documentclass[de, handout]{CELbeamer}
\else
\documentclass[de]{CELbeamer}
\fi
%
%

View File

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