style commands finished, getting rid of rest
This commit is contained in:
parent
8f4bfd01c0
commit
5c036ed152
1 changed files with 25 additions and 48 deletions
|
@ -50,53 +50,43 @@
|
|||
|
||||
\NewDocumentCommand{\declarefancythmstyle}{O{} m O{} }{
|
||||
\declarefancymdfstyle[#1]{#2}
|
||||
\if\relax\detokenize{#3}\relax
|
||||
\if\relax\detokenize{#1}\relax
|
||||
\declaretheoremstyle[
|
||||
mdframed={style=md#2margin},
|
||||
mdframed={style=
|
||||
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
|
||||
},
|
||||
postheadspace={0.3em},
|
||||
notefont=\mdseries
|
||||
]{thmredmarginandfill}
|
||||
]{thm#2margin}
|
||||
\else
|
||||
\declaretheoremstyle[
|
||||
mdframed={style=md#2marginand#1fill},
|
||||
mdframed={style=
|
||||
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
|
||||
},
|
||||
postheadspace={0.3em},
|
||||
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
|
||||
}
|
||||
|
||||
\def\fancythmskipabove{8pt}
|
||||
\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}{%
|
||||
skipabove =\fancythmskipabove,
|
||||
|
@ -230,19 +220,6 @@
|
|||
notefont=\mdseries
|
||||
]{thmorangemarginbluefill}
|
||||
|
||||
\declaretheoremstyle[
|
||||
mdframed={style=mdorangemarginandfill},
|
||||
postheadspace={0.3em},
|
||||
notefont=\mdseries
|
||||
]{thmorangemarginandfill}
|
||||
|
||||
\declaretheoremstyle[
|
||||
mdframed={style=mdbluemarginandfill},
|
||||
postheadspace={0.3em},
|
||||
notefont=\mdseries
|
||||
]{thmbluemarginandfill}
|
||||
|
||||
|
||||
\declaretheoremstyle[
|
||||
mdframed={style=mdgreenmargin},
|
||||
postheadspace={0.3em},
|
||||
|
|
Loading…
Reference in a new issue