about summary refs log tree commit diff stats
path: root/common/latex/preamble/academia/theorems/definitions.tex
blob: 4355b3c915d48eb07b2f369bdd2419dddf6efdb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
\renewcommand\qedsymbol{\ensuremath{\text{\textit{O.}}~\epsilon.~\delta.}}
% \renewcommand\qedsymbol{\dots}

\theoremstyle{definition}


\declaretheoremstyle[
	headfont=\bfseries\sffamily\color{NavyBlue!80},
	bodyfont=\normalfont,
	headpunct={:\\},
	qed=\qedsymbol,
	mdframed={
			linewidth=2pt,
			rightline=false, topline=false, bottomline=false,
			linecolor=NavyBlue, backgroundcolor=NavyBlue!5,
		},
]{thmexample}
\declaretheorem[numbered=no, style=thmexample,name=Beispiel]{eg}

\declaretheoremstyle[
	headfont=\bfseries\sffamily\color{RawSienna!80},
	bodyfont=\normalfont,
	headpunct={:\\},
	qed=\qedsymbol,
	mdframed={
			linewidth=2pt,
			rightline=false, topline=false, bottomline=false,
			linecolor=RawSienna, backgroundcolor=RawSienna!5,
		},
]{thmexercise}
\declaretheorem[numbered=no, style=thmexercise, name=Aufgabe]{ex}


\declaretheoremstyle[
	headfont=\bfseries\sffamily\color{ForestGreen!80},
	bodyfont=\normalfont,
	headpunct={:\\},
	qed=\qedsymbol,
	mdframed={
			linewidth=2pt,
			rightline=false, topline=false, bottomline=false,
			linecolor=ForestGreen, backgroundcolor=ForestGreen!5,
		},
]{thmdef}
\declaretheorem[numbered=yes, style=thmdef, name=Definition]{definition}

\declaretheoremstyle[
	headfont=\bfseries\sffamily\color{RawSienna!70!black},
	bodyfont=\normalfont,
	headpunct={:\\},
	qed=\qedsymbol,
	mdframed={
			linewidth=2pt,
			leftline=false, rightline=true, topline=false, bottomline=false,
			linecolor=RawSienna, backgroundcolor=Red!5,
		}
]{thmtheorem}
\declaretheorem[numbered=yes, style=thmtheorem, name=Satz]{theorem}


\declaretheoremstyle[
	headfont=\bfseries\sffamily\color{Violet!80},
	bodyfont=\normalfont,
	headpunct={:\\},
	notebraces={f\"ur }{},
	qed=\qedsymbol,
	mdframed={
			linewidth=2pt,
			rightline=false, topline=false, bottomline=false,
			linecolor=Violet, backgroundcolor=Violet!5,
		},
]{thmsolution}
\makeatletter
\@ifclasswith{report}{nosolutions}
{%
	\NewEnviron{solution}[1][]{Eine L\"osung mit dem Name ("L\"osung für #1") wurde ausgeblendet.\ \\ \par}
	\newcommand\hdsolution[1]{L\"osung ausgeblendet}
}{%
	\declaretheorem[numbered=no, style=thmsolution, name=L\"osung]{replacementSolution}

	\NewEnviron{solution}[1][]{
		\vspace{-1em}
		\begin{replacementSolution}[#1]
			\
			\BODY
		\end{replacementSolution}
	}
	\newcommand\hdsolution[1]{#1}
}
\makeatother