scriptum_style.sty 3.79 KB
Newer Older
Harry Fuchs's avatar
Harry Fuchs committed
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
\ProvidesPackage{scriptum_style}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
% math packages
\usepackage{amsmath, amssymb, amstext, amsthm, amscd}
\usepackage{stmaryrd}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{enumerate}
% graphics packages
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{floatflt}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{tikz-cd}
\pgfplotsset{compat=1.14}
% layout packages
\usepackage{fancyhdr}
\usepackage{epigraph}




%\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{hyperref}
\usepackage{a4wide,setspace}
\usepackage{etoolbox}
%\usepackage{stmaryrd, mathptmx}

\makeatletter
%\numberwithin{section}{chapter}
%\def\@secnumfont{\mdseries}
%\def\section{\@startsection{section}{1}%
%  \z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
%  {\normalfont\scshape\centering}}
%\def\subsection{\@startsection{subsection}{2}%
%  \z@{.5\linespacing\@plus.7\linespacing}{-.5em}%
%  {\normalfont\bfseries}}
\setcounter{tocdepth}{3}

\patchcmd{\@thm}{\let\thm@indent\indent}{\let\thm@indent\noindent}{}{}
\patchcmd{\@thm}{\thm@headfont{\scshape}}{\thm@headfont{\bfseries}}{}{}

\makeatother
\newtheoremstyle{rmk}% name
  {3pt}%Space above
  {3pt}%Space below
  {\normalfont}%Body font
  {0pt}%Indent amount
  {\itshape}% Theorem head font
  {.}%Punctuation after theorem head
  {0.3em}%Space after theorem head 2
  {}%Theorem head spec (can be left empty, meaning ‘normal’)

\expandafter\patchcmd\csname\string\proof\endcsname
  {\normalparindent}{0pt}{}{}

% NEW ENVIRONMENTS ===========================================================
\theoremstyle{definition}
\newtheorem{defn}{Definition}[chapter]

\theoremstyle{plain}
\newtheorem{theo}[defn]{Theorem}
\newtheorem{cor}[defn]{Korollar}
\newtheorem{prop}[defn]{Proposition}
\newtheorem{lem}[defn]{Lemma}
\theoremstyle{rmk}
\newtheorem{rem}[defn]{Bemerkung}
\newtheorem{bsp}[defn]{Beispiel}
\newtheorem{ueb}[defn]{\"Ubung}
% ======== NEW COMMANDS  ========
% ------ special fonts -----------
\newcommand{\mf}{\mathbf}
\newcommand{\mc}{\mathcal}
\newcommand{\mb}{\mathbb}
\newcommand{\mk}{\mathfrak}
\newcommand{\ms}{\mathscr}
\newcommand{\msf}{\mathsf}
\newcommand{\mr}{\mathrm}
\newcommand{\Cs}{\mbox{$C^*$}}
\newcommand{\ul}{\underline}
\newcommand{\ib}[1]{\left( #1\right)}
% ---- statistical operators ------
\newcommand{\ex}[1]{\mb E\left[ #1 \right]}
\newcommand{\var}[1]{\mb V \left[ #1 \right]}
% ---------------------------------
\newcommand{\ip}[1]{\left\langle #1\right\rangle}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\norm}[1]{\left\Vert #1 \right\Vert}
\newcommand{\cbnorm}[1]{\left\Vert #1 \right\Vert_{\mathrm{cb}}}
\newcommand{\lt}{\left(}
\newcommand{\rt}{\right)}
\newcommand{\ltt}{\left[}
\newcommand{\rtt}{\right]}
\newcommand{\lb}{\left\lbrace}
\newcommand{\rb}{\right\rbrace}
\newcommand{\bra}{\left\langle}
\newcommand{\ket}{\right\rangle}
\newcommand{\com}[1]{\left[#1 \right]}
\newcommand{\beq}{\begin{equation}}
\newcommand{\eeq}{\end{equation}}
\newcommand{\beqn}{\begin{equation*}}
\newcommand{\eeqn}{\end{equation*}}
\newcommand{\brq}{\begin{dmath}[compact]}
\newcommand{\erq}{\end{dmath}}
\newcommand{\brqn}{\begin{dmath*}[compact]}
\newcommand{\erqn}{\end{dmath*}}
\newcommand{\bbra}{\langle\!\langle}
\newcommand{\kett}{\rangle\!\rangle}
\newcommand{\eps}{\varepsilon}
\newcommand{\Op}{\mathrm{OP}}
\newcommand{\Sd}{\mathrm{Sd}}
\newcommand{\inj}{\rightarrowtail}
\newcommand{\surj}{\twoheadrightarrow}
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\renewcommand{\Re}{\mathop{\mathrm{Re}}}
\renewcommand{\Im}{\mathop{\mathrm{Im}}}
\newcommand{\leftsub}[2]{\prescript{}{#1}{#2}}
\newcommand{\leftsup}[2]{\prescript{#1}{}{#2}}
\newcommand{\ilim}[1][n]{\lim_{#1\to\infty}}
\newcommand{\op}{{\operatorname{{op}}}}
\newcommand{\vntens}{\overline{\otimes}}