diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-10-18 13:31:43 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-10-18 13:31:43 +0200 |
| commit | 2a3ed0a9d459aad707ff79dcc6c081624e767b8e (patch) | |
| tree | 92f782149d32377e8427a1ed9ed05862ce6f0282 /latex/fmts | |
| parent | 77da5074b191cf2fb15ad25e973e346ff684c849 (diff) | |
| download | unterricht-2a3ed0a9d459aad707ff79dcc6c081624e767b8e.tar.gz unterricht-2a3ed0a9d459aad707ff79dcc6c081624e767b8e.zip | |
add new tcolorboxes merke and pseudocode
Diffstat (limited to 'latex/fmts')
| -rw-r--r-- | latex/fmts/slides.tex | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/latex/fmts/slides.tex b/latex/fmts/slides.tex index b6bbfe55..7531914d 100644 --- a/latex/fmts/slides.tex +++ b/latex/fmts/slides.tex @@ -17,6 +17,41 @@ \usepackage{fontawesome5} \usepackage{tabularx} +\usepackage[most]{tcolorbox} +\usetikzlibrary{decorations.pathmorphing} % For my tcolorboxes + +\newtcolorbox{merke}{ + coltitle=white, + colbacktitle=orange!80!black, + colframe=orange!80!black, + 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, + 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}}} \begin{document} |
