% Declare Document Class
\documentclass{article}

% Latex Packages
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{geometry}
\usepackage{listings}
\usepackage{color}
\usepackage{graphicx}
\usepackage{float}

% Define color
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}

\lstdefinestyle{mystyle}{
    backgroundcolor=\color{backcolour},   
    commentstyle=\color{codegreen},
    keywordstyle=\color{magenta},
    numberstyle=\tiny\color{codegray},
    stringstyle=\color{codepurple},
    basicstyle=\footnotesize,
    breakatwhitespace=false,         
    breaklines=true,                 
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=4
}

\lstset{style=mystyle}

% Path where images are located relative
% to the file main.tex
\graphicspath{{img/}}

% Custom commands
\newcommand{\insertoutput}[1]{
    \begin{center}
        \includegraphics[width=12cm]{#1}
    \end{center}
}
\newcommand{\pic}[2]{
    \begin{center}
        \transparent{0.4}
        \includegraphics[height=#1]{#2}
    \end{center}
}


% In which order to look after images in
% declared graphicspath{}'s
% 1. Low-quality JPG
% 2. Med-quality PNG
% 3. High-quality PDF
\DeclareGraphicsExtensions{.jpg,.png,.pdf}

% Package Params
\geometry{a4paper,margin=2cm}
% Used to NOT show red boxes around colons
% etc. when using the minted{} package.
\AtBeginEnvironment{minted}{\renewcommand{\fcolorbox}[4][]{#4}}

%
% BEGIN DOCUMENT
%
\begin{document}

% Which info to insert on the title page
\title{r17dinh409 Cisco Lab}
\author{Christoffer Hansen <zbcchhan11 at zbc.dk>}
\date{May 22 - June 30, 2017}
% Make title page contents
\maketitle

% Page break before starting Table Of Contents
\newpage
% Table Of Contents
\tableofcontents


%
% BEGIN SWITCH CONFIG
%
\section{Lab cfg}

% <!-- ROUTER -->

\subsection{Router}
\subsubsection{File: base.cfg}
%\lstinputlisting[language=tcl]{code/router/base.cfg}
\subsubsection{File: reset.tcl}
%\lstinputlisting[language=tcl]{code/router/reset.tcl}

% <!-- LAYER 3 SWITCH -->

\subsection{Layer 3 Switch}
\subsubsection{File: base.cfg}
\lstinputlisting[language=tcl]{code/l3switch/base.cfg}
\subsubsection{File: reset.tcl}
\lstinputlisting[language=tcl]{code/l3switch/reset-tcl.txt}

% <!-- LAYER 2 SWITCH -->

\subsection{Layer 2 Switch}
\subsubsection{File: base.cfg}
\lstinputlisting[language=tcl]{code/l2switch/base.cfg}
\subsubsection{File: reset.tcl}
\lstinputlisting[language=tcl]{code/l2switch/reset-tcl.txt}

%
% END SWITCH CONFIG
%




%
% END DOCUMENT
%
\end{document}
