\setupThesis{
  author={Jonatan Gezelius},
  swetitle={TODO},
  swesubtitle={},
  title={Reuse and verification of equipment for the ISO~7637 standard},
  subtitle={},
  year=2019,
  type=msc,
  subject={Electrical Engineering},
  division={TODO DIVISION},
  department=isy,
  examiner={Michael Josefsson \AT \textsc{isy}, Linköpings universitet},
  supervisor={Peter Johansson \AT \textsc{isy}, Linköpings universitet \AND Gunnar Karlström \AT BK Services AB},
  keywords={verification, measurement, testing},
  isrn=LiTH-ISY-EX-{}-YY/NNNN-{}-SE,
  url={http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-XXXXX},
  dedication={}
}

%%% Makes DOI numbers to links
\usepackage{doi}


%%% The footnotes are renumbered for each page
\usepackage[perpage]{footmisc}


%%& Make bold mathmode available 
\usepackage{bm}

%%% Make it possible to change size of tables
\usepackage{adjustbox}

%%% Use SI units
\usepackage{siunitx}
%%% For consistent formatting of lengths and other physical quantities.
%\RequirePackage[squaren]{SIunits}

%%% If it is still a draft
\usepackage[printwatermark]{xwatermark}
\usepackage[]{xcolor}
\newwatermark[allpages,color=red!10,angle=45,scale=2,xpos=0,ypos=-80]{DRAFT}
\newwatermark[allpages,color=red!10,angle=45,scale=2,xpos=0,ypos=80]{DRAFT}

%%% Since macros that define notation may be useful also to produce figures, these macros are kept in a separate file.
\RequirePackage{mynotation}

%%% Setup for natbib (natbib is loaded by rtthesis).
\AtBeginDocument{%
  %\bibliographystyle{plainnat}%
  %\bibliographystyle{unsrtnat}%
  \bibliographystyle{ieeetr}%
}

%%% Egna inställningar %%%%
\setlength{\parindent}{0em}
\setlength{\parskip}{1em}

%% Enable use of svg
\usepackage{svg}

%%% Tell \includegraphics where to search for files.
\graphicspath{{fig/}}




%%% Define command for playing around with margin paragraphs.
\definecolor{Warning}{rgb}{1.0,0.5,0.0}
\newcommand{\Warning}[2][Warning]{\marginpar{\fcolorbox{Warning}{white}{\begin{minipage}{\linewidth}\textbf{\textcolor{Warning}{\emph{#1:}}}\par \tiny \sf #2\end{minipage}}}}

%%% Convenient todo command
\usepackage{xifthen}
\newcommand{\todo}[1][]{%
    \ifthenelse{\equal{#1}{}}% if no argument given
        { \emph{TODO}\Warning[TODO]{}}%
    %else
        {\emph{\uppercase{TODO}}\Warning[TODO]{#1}}%
}

%%% Put text inside a square %%%
\newcommand{\squareit}[1]{\fbox{\parbox{\textwidth}{#1}}}

%%% Define font size command to use for all verbatim environments.
\newcommand{\verbatimsize}{\small}

%%% Define some convenient referencing commands.
\newcommand{\chapterref}[1]{\hyperref[#1]{kapitel~\ref*{#1}}}
\newcommand{\Chapterref}[1]{\hyperref[#1]{Kapitel~\ref*{#1}}}

\newcommand{\sectionref}[1]{\hyperref[#1]{avsnitt~\ref*{#1}}}
\newcommand{\Sectionref}[1]{\hyperref[#1]{Avsnitt~\ref*{#1}}}

\newcommand{\theoremref}[1]{\hyperref[#1]{teorem~\ref*{#1}}}
\newcommand{\Theoremref}[1]{\hyperref[#1]{Teorem~\ref*{#1}}}

\newcommand{\exampleref}[1]{\hyperref[#1]{exempel~\ref*{#1}}}
\newcommand{\Exampleref}[1]{\hyperref[#1]{Exempel~\ref*{#1}}}

\newcommand{\figureref}[1]{\hyperref[#1]{figur~\ref*{#1}}}
\newcommand{\Figureref}[1]{\hyperref[#1]{Figur~\ref*{#1}}}

\newcommand{\tableref}[1]{\hyperref[#1]{tabell~\ref*{#1}}}
\newcommand{\Tableref}[1]{\hyperref[#1]{Tabell~\ref*{#1}}}

\newcommand{\pagepageref}[1]{\hyperref[#1]{sida~\pageref*{#1}}}
