summaryrefslogtreecommitdiff
path: root/general.cls
blob: a58b8190b6c95880717744e180d790f0e67aa8f2 (plain) (blame)
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
\ProvidesClass{general}
\LoadClass[oneside]{article}

% Page setup.
\RequirePackage[a4paper, margin=20mm]{geometry}
\RequirePackage[T1]{fontenc}
\RequirePackage[english]{babel}

% Formatting.
\RequirePackage{parskip}
\RequirePackage[pdfusetitle, bookmarks=false]{hyperref}
\RequirePackage{changepage}
\RequirePackage{titlesec}

% Figures.
\RequirePackage{float}
\RequirePackage{graphicx}
\RequirePackage{caption}
\RequirePackage{subcaption}

% Tables.
\RequirePackage{booktabs}

% Mathematics and science.
\RequirePackage{amsmath}
\RequirePackage[math-style=ISO, bold-style=ISO]{unicode-math}
\RequirePackage{siunitx}

% Code listings.
\RequirePackage{listings}
\RequirePackage{matlab-prettifier}
\RequirePackage{xcolor}

\setmainfont{Minion3}[
	Path=fonts/,
	Extension=.otf,
	UprightFont=*-Regular,
	BoldFont=*-Bold,
	ItalicFont=*-Italic,
	BoldItalicFont=*-BoldItalic
]

\setmathfont[math-style=ISO, bold-style=ISO, partial=upright]{STIX Two Math}

\captionsetup{
	labelfont=bf,
	labelsep=period,
	justification=centering
}

\sisetup{
	separate-uncertainty=true
}

\lstset{
	numbers=left,
	numbersep=8pt,
	frame=single
}

\titleformat{\section}{\Large\bfseries}{}{0pt}{}

\renewcommand{\arraystretch}{1.25}