style commands finished, getting rid of rest

This commit is contained in:
Maximilian Keßler 2021-09-12 12:50:51 +02:00
parent 8f4bfd01c0
commit 5c036ed152

View File

@ -50,53 +50,43 @@
\NewDocumentCommand{\declarefancythmstyle}{O{} m O{} }{ \NewDocumentCommand{\declarefancythmstyle}{O{} m O{} }{
\declarefancymdfstyle[#1]{#2} \declarefancymdfstyle[#1]{#2}
\if\relax\detokenize{#3}\relax
\if\relax\detokenize{#1}\relax \if\relax\detokenize{#1}\relax
\declaretheoremstyle[ \declaretheoremstyle[
mdframed={style=md#2margin}, mdframed={style=
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
},
postheadspace={0.3em}, postheadspace={0.3em},
notefont=\mdseries notefont=\mdseries
]{thmredmarginandfill} ]{thm#2margin}
\else \else
\declaretheoremstyle[ \declaretheoremstyle[
mdframed={style=md#2marginand#1fill}, mdframed={style=
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
},
postheadspace={0.3em}, postheadspace={0.3em},
notefont=\mdseries notefont=\mdseries
]{thmredmarginandfill} ]{thm#2marginand#1fill}
\fi
\else
\declaretheoremstyle[
mdframed={style=
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
},
postheadspace={0.3em},
notefont=\mdseries
]{#3}
\fi \fi
} }
\def\fancythmskipabove{8pt} \def\fancythmskipabove{8pt}
\def\fancythmlinewidth{2pt} \def\fancythmlinewidth{2pt}
\declarefancythmstyle[red!8]{red}[mdredmarginandfill] \declarefancythmstyle[red!8]{red}[thmredmarginandfill]
\declarefancythmstyle[orange!10]{orange}[thmorangemarginandfill]
%\declarefancymdfstyle[red!8]{red}[mdredmarginandfill] \declarefancythmstyle[blue!7]{blue}[thmbluemarginandfill]
%\declarefancymdfstyle[red!8]{red}[mdredmarginandfill]
\mdfdefinestyle{mdorangemarginandfill}{%
skipabove =\fancythmskipabove,
linecolor=orange,
linewidth = \fancythmlinewidth,
leftmargin = 0cm,
rightmargin=0cm,
backgroundcolor=orange!10,
rightline=false,
topline=false,
bottomline=false
}
\mdfdefinestyle{mdbluemarginandfill}{%
skipabove =\fancythmskipabove,
linecolor=blue,
linewidth = \fancythmlinewidth,
leftmargin = 0cm,
rightmargin=0cm,
backgroundcolor=blue!7,
rightline=false,
topline=false,
bottomline=false
}
\mdfdefinestyle{mdgreenmargin}{% \mdfdefinestyle{mdgreenmargin}{%
skipabove =\fancythmskipabove, skipabove =\fancythmskipabove,
@ -230,19 +220,6 @@
notefont=\mdseries notefont=\mdseries
]{thmorangemarginbluefill} ]{thmorangemarginbluefill}
\declaretheoremstyle[
mdframed={style=mdorangemarginandfill},
postheadspace={0.3em},
notefont=\mdseries
]{thmorangemarginandfill}
\declaretheoremstyle[
mdframed={style=mdbluemarginandfill},
postheadspace={0.3em},
notefont=\mdseries
]{thmbluemarginandfill}
\declaretheoremstyle[ \declaretheoremstyle[
mdframed={style=mdgreenmargin}, mdframed={style=mdgreenmargin},
postheadspace={0.3em}, postheadspace={0.3em},