% These manuals are a *must* read. They are all full of good examples;
% amsldoc   - http://mirror.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf
% mathtools - http://mirror.ctan.org/macros/latex/contrib/mh/mathtools.pdf
% biblatex  - http://mirror.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf
% booktabs  - http://mirror.ctan.org/macros/latex/contrib/booktabs/booktabs.pdf
% http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html
% http://en.wikibooks.org/wiki/LaTeX/
% See chalmers-thesis.cls for the documentation on this actual template.

%\RequirePackage[l2tabu,orthodox]{nag} % This package helps prevent you from doing things wrong.

\usepackage{ifluatex} % Automatic check for luatex.
\ifluatex
 \usepackage{fontspec}
\else
 \usepackage[utf8]{inputenc} % File encoding, you should try to stick to utf8.
\fi
\usepackage{microtype} % Magically improves typesetting for pdflatex
\usepackage{subfiles} % Convenient use of subfiles in documents. Using \subfile is optional. See README
\usepackage{hyperref} % Required for in document links and document metadata.
\usepackage[swedish, english]{babel}

% More or less required packages
\usepackage{csquotes} % Needed for biblatex
% Biblatex allows you to choose backend, either the old "bibtex", or the new "biber".
% \usepackage[giveninits=true, style=alphabetic, backend=biber]{biblatex} % Modern bibliography facilities 
\usepackage[giveninits=true, style=numeric, backend=biber]{biblatex} % Modern bibliography facilities 

\usepackage{mathtools} % All your math related needs
\usepackage{tikz} % Draw figures. Required for cover page

% Read the manuals for the respective package to see the usage;
\usepackage{pdfpages} % For included other pdf files (like articles).
%\usepackage{thmtools} % For theorems.
%\usepackage{algorithms} % For algorithms.
%\usepackage{listings} % For source code.
\usepackage{booktabs} % High quality tables.
\usepackage{siunitx} % For all your numerical values and units.
%\usepackage{pgfplots} % Make plots directly in latex. Also tables. Excellent package.
%\usepackage{contmech} % Custom package for typesetting in continuum mechanics for applied mechanics.
%\usepackage{yourcustomcommands} % Put your custom commands in a file 'yourcustomcommands.sty' and load it like this.

\usepackage{lipsum}\setlipsumdefault{1-3} % Package used to put in placeholder text. Remove it.

\usepackage{xcolor} % Text. Now in colour!

\titleformat{\chapter}[display]
  {\Huge\bfseries\filcenter}
  {\thechapter}{.1ex}{}[]