%%%%%%%%%%%%%%%%%%%%%%%%% Package %%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{settings}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%	COMMON
%----------------------------------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel} 
\usepackage[]{fancyhdr}
\usepackage[]{verbatim}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{caption}
\usepackage{color}
\usepackage[at]{easylist}
\usepackage[rightcaption]{sidecap}
\usepackage{empheq}
\usepackage[at]{easylist}
\usepackage{etoolbox} %No idea what it does, but might break things if removed!
\usepackage{pdflscape} % Use: \begin{landscape} ... \end{landscape}
\usepackage{steinmetz}
\usepackage{subfig}

%----------------------------------------------------------------------------------------
%	EXTRA PARAMETERS
%----------------------------------------------------------------------------------------
\usepackage{geometry}
    \geometry{  
    a4paper,
    total={170mm,240mm},
    left=20mm,
    top=30mm}
 
\pagestyle{fancy}
    \fancyhf{}
    \lhead{7 januari 2018}
    \chead{Projektrapport\\Analog Konstruktion}
    \rhead{John Croft\\ Andreas Johansson}
    \lfoot{}
    \cfoot{Sida \thepage}
    

\usepackage[most]{tcolorbox}
    \tcbset{colback=white!100!yellow, colframe=black!100!red, 
            highlight math style = {enhanced, colback=white!100!yellow, colframe=black!100!red, boxsep=1pt, arc=1pt, boxrule=0.5pt
    %Moar options:        %, drop fuzzy shadow
            }
            }

\usepackage[newfloat]{minted}
    \definecolor{bg}{rgb}{0.95,0.95,0.95}
    \setminted{fontsize=\footnotesize, 
    		   linenos,
    		   numbersep=8pt,
    		   % gobble=4,
    		   frame=lines,
    		   bgcolor=bg,
    		   framesep=3mm,
    		    breaklines=true
    }
    %\renewcommand\listoflistingscaption{LIST OF CODE EXCERPTS}
    %\renewcommand\listingscaption{Code Excerpt}

% Allow captions around 'minted' code snippets.
\usepackage{caption}
    \newenvironment{code}{\captionsetup{type=listing}}{}
    \SetupFloatingEnvironment{listing}{name=Code Snippet}

\usepackage[]{tikz}
    \usetikzlibrary{arrows, automata, positioning}
    
% Make the table of contents clickable.
\usepackage[hidelinks]{hyperref}
\hypersetup{
    allcolors=black
}
