diff options
| -rw-r--r-- | latex/common.tex | 34 | ||||
| -rw-r--r-- | latex/common_packages.tex | 1 | ||||
| -rw-r--r-- | latex/fmts/slides.tex | 35 |
3 files changed, 70 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}}} diff --git a/latex/common_packages.tex b/latex/common_packages.tex index 85a83eb6..330170bc 100644 --- a/latex/common_packages.tex +++ b/latex/common_packages.tex @@ -12,6 +12,7 @@ \RequirePackage{tikz} \usetikzlibrary{calc,tikzmark,positioning,backgrounds} \usetikzlibrary{arrows.meta} +\usetikzlibrary{decorations.pathmorphing} % For my tcolorboxes \usetikzlibrary{patterns,angles,quotes,babel} \RequirePackage[most]{tcolorbox} \RequirePackage{lmodern} 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} |
