thmstyle roughly finished
This commit is contained in:
parent
3b61660880
commit
6f67c1c143
1 changed files with 1 additions and 15 deletions
|
@ -10,21 +10,11 @@
|
||||||
\RequirePackage{xparse}
|
\RequirePackage{xparse}
|
||||||
\definecolor{gold}{RGB}{218,165,32}
|
\definecolor{gold}{RGB}{218,165,32}
|
||||||
|
|
||||||
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
|
\mdfsetup{skipabove=8pt,skipbelow=\topskip}
|
||||||
|
|
||||||
|
|
||||||
\def\name#1#2#3{
|
|
||||||
\if\relax\detokenize{#1}\relax
|
|
||||||
\if\relax\detokenize{#3}\relax md#2margin\else #3\fi
|
|
||||||
\else
|
|
||||||
\if\relax\detokenize{#3}\relax md#2marginand#1fill\else #3\fi
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
|
|
||||||
\NewDocumentCommand{\declarefancymdfstyle}{O{} m O{} }{
|
\NewDocumentCommand{\declarefancymdfstyle}{O{} m O{} }{
|
||||||
\if\relax\detokenize{#1}\relax
|
\if\relax\detokenize{#1}\relax
|
||||||
\mdfdefinestyle{\if\relax\detokenize{#3}\relax md#2margin\else #3\fi}{%
|
\mdfdefinestyle{\if\relax\detokenize{#3}\relax md#2margin\else #3\fi}{%
|
||||||
skipabove =8pt,
|
|
||||||
linecolor=#2,
|
linecolor=#2,
|
||||||
linewidth = 2pt,
|
linewidth = 2pt,
|
||||||
leftmargin = 0cm,
|
leftmargin = 0cm,
|
||||||
|
@ -35,7 +25,6 @@
|
||||||
}
|
}
|
||||||
\else
|
\else
|
||||||
\mdfdefinestyle{\if\relax\detokenize{#3}\relax md#2marginand#1fill\else #3\fi}{%
|
\mdfdefinestyle{\if\relax\detokenize{#3}\relax md#2marginand#1fill\else #3\fi}{%
|
||||||
skipabove =8pt,
|
|
||||||
linecolor=#2,
|
linecolor=#2,
|
||||||
linewidth = 2pt,
|
linewidth = 2pt,
|
||||||
leftmargin = 0cm,
|
leftmargin = 0cm,
|
||||||
|
@ -79,9 +68,6 @@
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
\def\fancythmskipabove{8pt}
|
|
||||||
\def\fancythmlinewidth{2pt}
|
|
||||||
|
|
||||||
\declarefancythmstyle[red!8]{red}[thmredmarginandfill]
|
\declarefancythmstyle[red!8]{red}[thmredmarginandfill]
|
||||||
\declarefancythmstyle[orange!10]{orange}[thmorangemarginandfill]
|
\declarefancythmstyle[orange!10]{orange}[thmorangemarginandfill]
|
||||||
\declarefancythmstyle[blue!7]{blue}[thmbluemarginandfill]
|
\declarefancythmstyle[blue!7]{blue}[thmbluemarginandfill]
|
||||||
|
|
Loading…
Reference in a new issue