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

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

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

\renewcommand{\arraystretch}{1.25}
