errata
[phd-thesis.git] / preamble.tex
1 \usepackage[utf8]{inputenc} % Input encoding
2 \usepackage[X2,T1]{fontenc} % Font encoding
3 \usepackage{ifxetex}
4 \ifxetex%
5 \usepackage{amsmath} % extra math
6 \usepackage{fontspec}
7 \usepackage{polyglossia}
8 \setmainlanguage[variant=british]{english}
9 \setotherlanguage{dutch}
10 \setotherlanguage{russian}
11 \newfontfamily{\cyrillicfont}{Liberation Serif}
12 \else
13 \usepackage{lmodern} % Nicer font
14 \usepackage{microtype} % Better kerning
15 \usepackage{amsmath} % extra math
16 \usepackage{amssymb} % extra math symbols
17
18 \usepackage[dutch,russian,british]{babel}
19 % \babelfont[russian]{rm}{Liberation Serif}
20 \fi
21
22 % Typography, widows, orphans, fonts
23 \input{preamble/typography}
24
25 % Internationalisation
26 \input{preamble/internationalisation}
27
28 % Papersize and layout
29 \input{preamble/layout}
30
31 % Tables
32 \input{preamble/table}
33
34 % Listings
35 \input{preamble/listings}
36
37 % Graphics
38 \input{preamble/graphics}
39
40 % Crossreferences, urls and hyperlinks
41 \input{preamble/crossref}
42
43 % Bibliography
44 \input{preamble/bibliography}
45
46
47 % Custom commands
48 \input{preamble/commands}
49
50 % Glossaries and acronyms
51 \input{preamble/glossaries}
52
53 % File structure, this must be last of the preamble
54 \usepackage{subfiles}
55
56 % Metadata (only works in main document) and should go after subfiles
57 \input{preamble/metadata}