\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{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}
