diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-11-03 15:01:31 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-11-03 15:01:31 +0100 |
| commit | 95cc57b104d76405c0e80ae8b05157e90a685607 (patch) | |
| tree | 9d7f14aadc5102d0dfddd62b043f52eec6bb91c2 | |
| parent | 196510552625eb14a3d7a1ac65fc4cacb30b0020 (diff) | |
| download | unterricht-95cc57b104d76405c0e80ae8b05157e90a685607.tar.gz unterricht-95cc57b104d76405c0e80ae8b05157e90a685607.zip | |
add latex code included in the slides format
| -rw-r--r-- | pandoc/templates/beamer.tex | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pandoc/templates/beamer.tex b/pandoc/templates/beamer.tex index b3ebd677..12a0fa4f 100644 --- a/pandoc/templates/beamer.tex +++ b/pandoc/templates/beamer.tex @@ -42,9 +42,66 @@ $endfor$ \usepackage[school]{pgf-umlcd} \usepackage{fontawesome5} \usepackage{tabularx} +\usepackage{ulem} + +\usepackage[most]{tcolorbox} +\usetikzlibrary{decorations.pathmorphing} % For my tcolorboxes + +\newtcolorbox{merke}{ + coltitle=white, + colbacktitle=orange!80!black, + colframe=orange!80!black, + colback=bg, + enhanced, + title=\bfseries {\large M}ERKE, + attach boxed title to top right={yshift=-0.28cm, xshift=-5mm}, + frame code={ + \draw[ + decorate, + decoration={random steps, segment length=5mm, amplitude=0.6pt}, + draw=orange!80!black + ] (frame.north east) rectangle (frame.south west); + }, +} + +\newtcolorbox{pseudocode}{ + coltitle=white, + colbacktitle=gray!30!black, + colframe=gray!30!black, + colback=bg, + enhanced, + title=\bfseries {\large P}SEUDOCODE, + attach boxed title to top right={yshift=-0.28cm, xshift=-5mm}, + frame code={ + \draw[ + decorate, + decoration={random steps, segment length=5mm, amplitude=0.6pt}, + draw=gray!30!black + ] (frame.north east) rectangle (frame.south west); + }, +} % My commands \newcommand{\boldred}[1]{\textcolor{red}{\textbf{#1}}} +\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0} +\newcommand{\boldgreen}[1]{\textcolor{ao(english)}{\textbf{#1}}} + +\newcommand{\beamersolution}[2]{% +\only<-\fpeval{#1-1}>{\textcolor{white}{#2}}% +\only<#1->{#2}% +} +\newcommand{\beamerpsolution}[2]{% +\only<-\fpeval{#1-1}>{\phantom{#2}}% +\only<#1->{#2}% +} + +\ifluatex + \newcommand{\beamergap}[2]{\underLine{\beamersolution{#1}{#2}}} + \newcommand{\beamerpgap}[2]{\underLine{\beamerpsolution{#1}{#2}}} +\else + \newcommand{\beamergap}[2]{\uline{\beamersolution{#1}{#2}}} + \newcommand{\beamerpgap}[2]{\uline{\beamerpsolution{#1}{#2}}} +\fi \csname endofdump\endcsname % end of our custom format $if(beamer)$ |
