-
Notifications
You must be signed in to change notification settings - Fork 1
/
preamble.tex
109 lines (78 loc) · 2.68 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Language Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% To specify the language of your thesis, uncomment the appropriate setting
% which depends on your LaTeX compiler. If you use a modern compiler such as
% LuaLaTeX or XeLaTeX, it is recommended to use the 'polyglossia' package to
% specify the language. If you use LaTeX or PDFLaTeX, 'babel' is recommended.
% English
% LuaLaTeX or XeLaTeX
\usepackage{polyglossia}
\setmainlanguage{english}
% PDFLaTeX
%\usepackage[english]{babel}
% German
% LuaLaTeX or XeLaTeX
%\usepackage{polyglossia}
%\setmainlanguage{german}
% PDFLaTeX
%\usepackage[ngerman]{babel}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings for list environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{enumitem}
\setlist{nosep,topsep=1ex,labelindent=\parindent,listparindent=\parindent}
\setlist[description]{leftmargin=2cm,style=nextline}
\setlist[enumerate,1]{label=(\roman*)}
\setlist[enumerate,2]{label=(\alph*)}
\setlist[enumerate,3]{label=(\arabic*)}
\setlist[itemize,1]{label=\textbullet}
\setlist[itemize,2]{label=\rule[.2ex]{0.8ex}{0.8ex}}
\setlist[itemize,3]{label=-}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Useful Packages and Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{csquotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Demo Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The packages included and settings set here are solely for the demo document
% and can be removed in your thesis
\usepackage{metalogo}
\usepackage{fancyvrb}
\RecustomVerbatimEnvironment{Verbatim}{Verbatim}{xleftmargin=\parindent,numbers=left,firstnumber=last,tabsize=4}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Citation Package
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{varioref}
\usepackage{cleveref}
\usepackage[backend=biber,style=authoryear]{biblatex}
\renewcommand*{\nameyeardelim}{\addcomma\space}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theoremstyles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\theoremstyle{break}
\theorembodyfont{\normalfont}
\theoremseparator{.}
\theorempreskip{1em}
\theorempostskip{1em}
\theoremsymbol{\ensuremath{\diamond}}
\newtheorem{thm}{Theorem}[chapter]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{exa}[thm]{Example}
\newtheorem{exas}[thm]{Examples}
\newtheorem{prblm}[thm]{Problem}
\newtheorem{prblms}[thm]{Problems}
\newtheorem{quest}{Question}
\newtheorem{quests}{Questions}
\newtheorem{rmk}[thm]{Remark}
\newtheorem{rmks}[thm]{Remarks}
\newtheorem{defn}[thm]{Definition}
\theoremstyle{nonumberplain}
\theoremheaderfont{\itshape}
\theoremsymbol{\rule{1ex}{1ex}}
\newtheorem{proof}{Proof}