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{} }{
|
\NewDocumentCommand{\declarefancythmstyle}{O{} m O{} }{
|
||||||
\declarefancymdfstyle[#1]{#2}
|
\declarefancymdfstyle[#1]{#2}
|
||||||
\if\relax\detokenize{#1}\relax
|
\if\relax\detokenize{#3}\relax
|
||||||
\declaretheoremstyle[
|
\if\relax\detokenize{#1}\relax
|
||||||
mdframed={style=md#2margin},
|
\declaretheoremstyle[
|
||||||
postheadspace={0.3em},
|
mdframed={style=
|
||||||
notefont=\mdseries
|
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
|
||||||
]{thmredmarginandfill}
|
},
|
||||||
|
postheadspace={0.3em},
|
||||||
|
notefont=\mdseries
|
||||||
|
]{thm#2margin}
|
||||||
|
\else
|
||||||
|
\declaretheoremstyle[
|
||||||
|
mdframed={style=
|
||||||
|
\if\relax\detokenize{#1}\relax md#2margin\else md#2marginand#1fill\fi
|
||||||
|
},
|
||||||
|
postheadspace={0.3em},
|
||||||
|
notefont=\mdseries
|
||||||
|
]{thm#2marginand#1fill}
|
||||||
|
\fi
|
||||||
\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}
|
]{#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},
|
||||||
|
|
Loading…
Reference in a new issue