From 810e7aab5d4005c4f18bdfe744d20d2e510cfe1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 27 Aug 2021 10:48:22 +0200 Subject: [PATCH] add praise env --- mkessler-fancythm.sty | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/mkessler-fancythm.sty b/mkessler-fancythm.sty index 0a6410d..bd1b836 100644 --- a/mkessler-fancythm.sty +++ b/mkessler-fancythm.sty @@ -116,7 +116,10 @@ \RequirePackage{thmtools} \RequirePackage{hyperref} \RequirePackage[skins]{tcolorbox} -%\RequirePackage[usenames,svgnames,dvipsnames]{xcolor} +\RequirePackage{xcolor} +\definecolor{gold}{rgb}{218,165,32} + + \mdfsetup{skipabove=\topskip,skipbelow=\topskip} %%mdframed styles @@ -167,6 +170,18 @@ bottomline=false } +\mdfdefinestyle{mdgoldmargin}{% + skipabove =\fancythmskipabove, + linecolor=gold, + linewidth = \fancythmlinewidth, + leftmargin = 0cm, + rightmargin=0cm, + rightline=false, + topline=false, + bottomline=false +} + + \mdfdefinestyle{mdyellowmargin}{% skipabove =\fancythmskipabove, linecolor=yellow!80!orange, @@ -301,6 +316,12 @@ notefont=\mdseries ]{thmgreenmargin} +\declaretheoremstyle[ + mdframed={style=mdgoldmargin}, + postheadspace={0.3em}, + notefont=\mdseries +]{thmgoldmargin} + \declaretheoremstyle[ mdframed={style=mdyellowmargin}, postheadspace={0.3em}, @@ -454,6 +475,7 @@ \declaresmalltheorem[Notationsmissbrauch][Abuse of Notation]{thmvioletmargin}{abuse} \declaresmalltheorem[Beispiel]{thmgreenmargin}{example} \declaresmalltheorem[Bemerkung]{thmyellowmargin}{remark} +\declaresmalltheorem[Lob]{thmgoldmargin}{praise} \declaresmalltheorem[Trivial Nonsense][Trivial Nonsense]{thmyellowmargin}{trivial} \declaresmalltheorem[Frage]{thmblackmarginandfill}{question} \declaresmalltheorem[Organisatorisches][Organisational stuff]{thmblackmargin}{orga}