-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
140 lines (117 loc) · 3.79 KB
/
preamble.tex
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
% !TEX root = main.tex
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{microtype}
\hyphenpenalty=750
\usepackage[style=alphabetic]{biblatex}
\usepackage{amsmath,amsthm}
\usepackage{thmtools}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage{inconsolata}
\usepackage{soul}
\usepackage[shortlabels]{enumitem}
%\usepackage{tikz}
%\usetikzlibrary{positioning}
%\usetikzlibrary{shapes.geometric}
\usepackage{graphicx}
\usepackage{lastpage}
\usepackage{fancyvrb}
\usepackage{xfrac}
\usepackage{xspace}
\usepackage[section]{placeins} % do not move figures across sections
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{bashful}
\usepackage{multirow}
\usepackage{framed}
\usepackage{environ}
\usepackage{multicol}
\newcommand{\TODO}[1]{}
\usepackage{pdflscape}
\usepackage{etoolbox}
\usepackage{xparse}
\usepackage{hyperref}
\usepackage{csquotes}
\def\headrulewidth{0mm}%
\def\footrulewidth{0mm}%
\setlength{\headheight}{22pt}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{conjecture}[theorem]{Conjecture}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
% Claim needs some special attention to look how I like them
\newtheoremstyle{claimstyle}%
{}{}{}{}{}%
{}% punctuation between head and body
{ }%space after theorem head; " " = normal interword space
{\underline{\thmname{#1}\thmnumber{ #2}:}\thmnote{ #3}}%
\theoremstyle{claimstyle}
\newtheorem{claim}{Claim}
% Reset claim counter for each proof
\AtEndEnvironment{proof}{\setcounter{claim}{0}}
% define claimproof environment that looks like I want it
\newenvironment{claimproof}[1][\underline{\textnormal{\proofname}}]%
{\proof[#1]%
\renewcommand*\qedsymbol{\ensuremath{\blacksquare}}}
{%
\endproof%
}
\providecommand*{\listingautorefname}{Listing}
\providecommand*{\conjectureautorefname}{Conjecture}
\urlstyle{rm}
% Abstand obere Blattkante zur Kopfzeile ist 2.54cm - 15mm
\setlength{\topmargin}{-15mm}
% number equations with sections
\numberwithin{equation}{section}
% a verbatim environment to my liking
\DefineVerbatimEnvironment{codeverbatim}{Verbatim}{fontsize=\small,frame=single,gobble=8,commandchars=\\\{\},codes={\catcode`$=3\catcode`^=7\catcode`_=8\everymath\expandafter{\the\everymath\verbmathspace}}}
%codes={\catcode`$=3\catcode`^=7\catcode`_=8}}
\newenvironment{code}[1]{%
\VerbatimEnvironment
\begin{codeverbatim}[label=\textbf{#1}]%
}
{\end{codeverbatim}}
% einige Abkuerzungen
\newcommand\ddfrac[2]{\frac{\displaystyle #1}{\displaystyle #2}}
\newcommand*{\alg}[1]{\textup{\textrm{\textsc{#1}}}}
\newcommand*{\NP}{\textbf{NP}\xspace}
\DeclareMathOperator{\N}{\mathbb{N}}
\DeclareMathOperator{\R}{\mathbb{R}}
% Someone is already declaring \G
\let\G\undefined
\DeclareMathOperator{\G}{\mathbb{G}}
% Someone is already declaring \P
\let\P\undefined
\DeclareMathOperator{\P}{\mathbb{P}}
\DeclareMathOperator{\Z}{\mathbb{Z}}
%\DeclareMathOperator{\E}{\mathbb{E}}
\DeclareMathOperator{\F}{\mathcal{F}}
% Someone is already declaring \H
\let\H\undefined
\DeclareMathOperator{\H}{\mathcal{H}}
\DeclareMathOperator{\E}{\mathcal{E}}
\DeclareMathOperator{\D}{\mathcal{D}}
\DeclareMathOperator{\T}{\mathcal{T}}
\DeclareMathOperator{\SD}{\mathcal{SD}}
% Someone is already declaring \S
\let\S\undefined
\DeclareMathOperator{\S}{\mathcal{S}}
\DeclareMathOperator{\A}{\mathcal{A}}
\DeclareMathOperator{\B}{\mathcal{B}}
\let\C\undefined
\DeclareMathOperator{\C}{\mathcal{C}}
\DeclareMathOperator{\ST}{\mathcal{ST}}
\DeclareMathOperator{\X}{\mathcal{X}}
\DeclareMathOperator{\Var}{\mathbb{V}ar}
\DeclareMathOperator{\xor}{\oplus}
\let\P\undefined
\DeclareMathOperator{\P}{\mathcal{P}}
% nicer enumerate
\renewcommand{\labelenumi}{(\arabic{enumi})}
% TODO delete
%\usepackage{lipsum}