-
Notifications
You must be signed in to change notification settings - Fork 0
/
janmscript.sty
85 lines (66 loc) · 2.89 KB
/
janmscript.sty
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
% Dieser Style definiert Erweiterungen für janmcommon.sty, die das Setzen von
% Skripten erleichtern.
% =============================================================================
% Pakete für Script Dokumente
% =============================================================================
% Theoreme wie Satz, Lemma, Definition, Beispiel
\usepackage[thmmarks,amsmath,amsthm]{ntheorem}
% Überschriften 1. ..., 1-A ... usw.
\usepackage{titlesec}
% =============================================================================
% Symbole wie q.e.d., fish, etc.
% =============================================================================
\newcommand{\fishhere}%
{\quad\ensuremath{\color{darkblue}\rtimes}}
\newcommand{\bsphere}%
{\quad\ensuremath{\color{yellow}\blacksquare}}
\newcommand{\maphere}%
{\quad\ensuremath{\multimap}}
\newcommand{\qedhere}%
{\quad\text{<<}}
% =============================================================================
% Styles für Theoreme wie Definition, Satz, Beweis etc.
% =============================================================================
% Fonts definieren
\newcommand{\blueheaderfont}%
{\normalfont\normalsize\bfseries\color{darkblue}}
\newcommand{\yellowheaderfont}%
{\normalfont\normalsize\bfseries\scshape\small\color{yellow}}
\newcommand{\itheaderfont}%
{\normalfont\itshape}
\newcommand{\marginfont}%
{\normalfont\small\color{gray}}
\newcommand{\prooffont}%
{\normalfont\normalsize}
\newcommand{\prooftextfont}%
{\normalfont\normalsize\itshape}
% Styles definieren
\newtheoremstyle{graymarginwithblueheader}%
{\item[\llap{\marginfont{##2}}\hskip\labelsep \blueheaderfont{##1}]}%
{\item[\llap{\marginfont{##2}}\hskip\labelsep \blueheaderfont{##3}]}%
\newtheoremstyle{graymarginwithyellowheader}%
{\item[\llap{\marginfont{##2}}\hskip\labelsep \yellowheaderfont{##1}]}%
{\item[\llap{\marginfont{##2}}\hskip\labelsep \yellowheaderfont{##3}]}%
\newtheoremstyle{graymarginwithitblackheader}%
{\item[\llap{\marginfont{##2}}\hskip\labelsep \itheaderfont{##1}]}%
{\item[\llap{\marginfont{##2}}\hskip\labelsep \itheaderfont{##3}]}%
\newtheoremstyle{graymarginwithblueheadern}%
{\item[\hskip\labelsep \blueheaderfont{##1}]}%
{\item[\hskip\labelsep \blueheaderfont{##3}]}%
\newtheoremstyle{graymarginwithyellowheadern}%
{\item[\hskip\labelsep \yellowheaderfont{##1}]}%
{\item[\hskip\labelsep \yellowheaderfont{##3}]}%
\newtheoremstyle{graymarginwithitblackheadern}%
{\item[\hskip\labelsep \itheaderfont{##1}]}%
{\item[\hskip\labelsep \itheaderfont{##3}]}%
\newtheoremstyle{yellowheader}%
{\item[\hskip\labelsep \yellowheaderfont{##1 ##2}]}%
{\item[\hskip\labelsep \yellowheaderfont{##3 ##2}]}%
\newtheoremstyle{nonumberproof}
{\item[\hskip\labelsep \prooffont{##1}]}%
{\item[\hskip\labelsep \prooffont{##1} \prooftextfont{##3}]}
% qed Umgebung resetten
\theorembodyfont{\normalfont}
\theoremstyle{nonumberproof}
\theoremsymbol{}
\renewtheorem{proof}{>>}