forked from villekol/tau-latex-thesis-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
197 lines (156 loc) · 6.71 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
%%% preamble.tex
%
% This file is for including LaTeX libraries or packages and defining your own
% commands.
%
% NOTE: The glossaries package loaded by tauthesis.cls throws a warning: No
% language module detected for 'finnish'. You can safely ignore this. All
% other warnings should be taken care of, before your thesis is submitted!
%%%%% Your packages.
%
% Before adding packages, see if they can be found in tauthesis.cls already.
% If you're not sure that you need a certain package, don't include it in the
% document! This can dramatically reduce compilation time.
% Graphs
% \usepackage{pgfplots}
% \pgfplotsset{compat=1.15}
% Subfigures and wrapping text
% \usepackage{subcaption}
%% Theorem environments and their numbering.
%
% Define both English and Finnish theorem types. These all follow the same
% counter. See the documentation of amsthm to see how these can be changed to
% suit your needs, if necessary.
%
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[chapter]
\newtheorem{theorem}[definition]{Theorem}
\newtheorem{lemma}[definition]{Lemma}
\newtheorem{corollary}[definition]{Corollary}
\newtheorem{example}[definition]{Example}
\newtheorem{maaritelma}[definition]{Määritelmä}
\newtheorem{lause}[definition]{Lause}
\newtheorem{apulause}[definition]{Apulause}
\newtheorem{seurauslause}[definition]{Seurauslause}
\newtheorem{esimerkki}[definition]{Esimerkki}
% Mathematics packages
\usepackage{mathtools, amssymb}
%\usepackage{bm}
% Chemistry packages
% \usepackage{chemfig}
% \usepackage[version=4]{mhchem}
% Text hyperlinking
% \usepackage{hyperref}
% \hypersetup{hidelinks}
% (SI) unit handling
\usepackage{siunitx}
\sisetup{
detect-all,
math-sf=\mathrm,
exponent-product=\cdot,
output-decimal-marker={,} % for theses in FINNISH!
}
%% For code listings.
\usepackage{listings}
% This global code listing configuration is required for automatically
% replacing special characters with corresponding LaTeX commands, in code files
% included with \lstinputlisting. Without it, letters like 'ä' in code file
% comments will result in a LaTeX errors.
%
% Source: https://tex.stackexchange.com/a/574950.
\lstset{
inputencoding = utf8, % Input encoding
extendedchars = true, % Extended ASCII
literate = % Support additional characters
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
{À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
{ẞ}{{\S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{r}}}1 {Ś}{{\'S}}1 {ś}{{\'s}}1 {Ş}{{\c{S}}}1 {ş}{{\c{s}}}1
{Š}{{\v{S}}}1 {š}{{\v{s}}}1 {Ť}{{\v{T}}}1 {ť}{{\v{t}}}1 {Ũ}{{\~U}}1
{ũ}{{\~u}}1 {Ū}{{\={U}}}1 {ū}{{\={u}}}1 {Ů}{{\r{U}}}1 {ů}{{\r{u}}}1
{Ű}{{\H{U}}}1 {ű}{{\H{u}}}1 {Ų}{{\k{U}}}1 {ų}{{\k{u}}}1 {Ź}{{\'Z}}1
{ź}{{\'z}}1 {Ż}{{\.Z}}1 {ż}{{\.z}}1 {Ž}{{\v{Z}}}1
}
%%%%% Your commands.
% Print verbatim LaTeX commands
\newcommand{\verbcommand}[1]{\texttt{\textbackslash #1}}
% Command for formatting code.
\newcommand\code[1]{\texttt{#1}}
% A delimiter command for the norm of a vector with mathtools.
\DeclarePairedDelimiter\norm{\lVert}{\rVert}
% Basic theorems in Finnish and in English.
% Remove [chapter] if you wish a simply
% running enumeration.
% \newtheorem{lause}{Lause}[chapter]
% \newtheorem{theorem}[lause]{Theorem}
% \newtheorem{apulause}[lause]{Apulause}
% \newtheorem{lemma}[lause]{Lemma}
% Use these versions for individually
% enumerated lemmas
% \newtheorem{apulause}{Apulause}[chapter]
% \newtheorem{lemma}{Lemma}[chapter]
% Definition style
% \theoremstyle{definition}
% \newtheorem{maaritelma}{Määritelmä}[chapter]
% \newtheorem{definition}[maaritelma]{Definition}
% examples in this style
%%%%% Glossary information.
% Use the following lines ONLY if you need more
% than one glossary. The first argument specifies
% a type label for the glossary and the second
% the displayed name.
% \newglossary*{symbs}{Symbols}
% \newglossary{label}{Displayed name}
% ...
\makeglossaries
% Use this line if using the default glossary.
% Otherwise comment out.
\loadglsentries[main]{tex/sanasto.tex}
% Use this line if using more than one glossary.
% Otherwise comment out.
% \loadglsentries[symbs]{tex/sanasto2.tex}
%%%%% Citation information.
% Commonly used bibliography modifications.
% Feel free to play around with them.
%\ExecuteBibliographyOptions{%
%sorting=none,
%maxbibnames=99,
%maxcitenames=2,
%giveninits=true,
%uniquename=init,
%sortcites,
%sortlocale=fin}
%\DeclareNameAlias{sortname}{last-first}
%\DeclareNameAlias{author}{last-first}
%\DeclareFieldFormat[%
% article,inbook,incollection,inproceedings,
% patent,thesis,unpublished]{citetitle}{#1\isdot}
%\DeclareFieldFormat[%
% article,inbook,incollection,inproceedings,
% patent,thesis,unpublished]{title}{#1\isdot}
%\DeclareFieldFormat{pagetotal}{#1 \bibstring{page}}
%\AtBeginBibliography{\renewcommand*{\makelabel}[1]{#1\hss}}
%\DefineBibliographyExtras{english}{\let\finalandcomma=\empty}
\addbibresource{tex/references.bib}