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/common.tex | |
| parent | 77da5074b191cf2fb15ad25e973e346ff684c849 (diff) | |
| download | unterricht-2a3ed0a9d459aad707ff79dcc6c081624e767b8e.tar.gz unterricht-2a3ed0a9d459aad707ff79dcc6c081624e767b8e.zip | |
add new tcolorboxes merke and pseudocode
Diffstat (limited to 'latex/common.tex')
| -rw-r--r-- | latex/common.tex | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/latex/common.tex b/latex/common.tex index 2111f6d7..5ccc9686 100644 --- a/latex/common.tex +++ b/latex/common.tex @@ -207,4 +207,38 @@ \newtcolorbox{defbox}[1]{breakable, enhanced, colback=orange!5!white,colframe=orange!75!black,title=#1} +\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); + }, +} + + \newcommand{\boldred}[1]{\textcolor{red}{\textbf{#1}}} +\newcommand{\boldgreen}[1]{\textcolor{green!70!black}{\textbf{#1}}} |
