% Input encoding, ensures compatibility with UTF-8
\usepackage[utf8]{inputenc}  % Only necessary if using pdfLaTeX
% XeLaTeX or LuaLaTeX are more modern compilers which supports utf8 by default

% Localization
\usepackage[english]{babel}  % Babel renews "hardcoded" strings to reflect the given language
%% One example: "Content" -> "Innhold" when setting [norsk]
\usepackage{csquotes}  % Recommended with babel or polyglossia

% Just for sample text
\usepackage{lipsum}

% Presentation - paper and margins
\usepackage{geometry}  % Gives access to powerful commands for deciding document layout
\geometry{margin=25mm}  % All margins around the border
\geometry{paper=a4paper}  % Paper size can be set to a4, a5 or many others

% Math packages
\usepackage{amsmath}  % Contains many math symbols and environments
\usepackage{amssymb}  % Contains additional math symbols

% Figure packages
\usepackage{graphicx}  % Allows us to \includegraphics{} for figures
\usepackage{wrapfig}  % Allows us to wrap text around a figure

% Table package
\usepackage{booktabs}  % Provides better top/mid/bottom-rules for making beautiful tables

% Referencing
\usepackage{hyperref}  % Enables hyper-referencing of all \ref{}'s

% Bibliography
\usepackage[style=ieee]{biblatex}  % Most feature-updated bibliography package
% Different styles are set here, such as: apa, ieee, ...
\addbibresource{ref.bib}  % Must be in preamble to be defined before it's used

% Appendices
\usepackage{appendix}  % Gives access to the appendix-environment

% Formatting
% Either use baselinestretch OR linespread, both is unnecessary
% \renewcommand{\baselinestretch}{1.25}  % The "stretch" between lines
% \linespread{1.6}  % The "spread" between lines
% \setlength{\parskip}{0em}  % Useless here as it is overrided further down (before and after the table of content)
\setlength{\parindent}{1em}  % Sets indent for first line in a new paragraph
\usepackage{setspace}


%%% Custom Commands %%%
% Unit commands, ensures math to exponentiate and un-italicises text
\newcommand{\un}[1]{\ensuremath{\, \mathrm{#1}}}
