1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-11-14 18:49:38 +00:00
NetworkLabNotes/main.tex

103 lines
2.6 KiB
TeX
Raw Normal View History

2017-05-22 10:12:53 +00:00
% Declare Document Class
2017-05-22 09:53:21 +00:00
\documentclass{article}
2017-05-22 10:12:53 +00:00
% Latex Packages
\usepackage[T1]{fontenc}
2017-05-22 09:53:21 +00:00
\usepackage[utf8]{inputenc}
2017-05-22 10:12:53 +00:00
\usepackage{lmodern}
\usepackage{geometry}
2017-05-22 10:19:53 +00:00
\usepackage{minted}
2017-05-22 10:12:53 +00:00
\usepackage{graphicx}
\usepackage{float}
% Path where images are located relative
% to the file main.tex
\graphicspath{{img/}}
2017-05-22 10:22:33 +00:00
% Custom commands
2017-05-22 10:12:53 +00:00
\newcommand{\insertoutput}[1]{
\begin{center}
\includegraphics[width=12cm]{#1}
\end{center}
}
2017-05-22 10:22:33 +00:00
\newcommand{\pic}[2]{
\begin{center}
\transparent{0.4}
\includegraphics[height=#1]{#2}
\end{center}
}
2017-05-22 10:12:53 +00:00
% 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.
2017-05-22 10:19:53 +00:00
\AtBeginEnvironment{minted}{\renewcommand{\fcolorbox}[4][]{#4}}
2017-05-22 10:12:53 +00:00
%
% BEGIN DOCUMENT
%
2017-05-22 09:53:21 +00:00
\begin{document}
2017-05-22 10:12:53 +00:00
% 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}
2017-05-22 10:19:53 +00:00
% <!-- ROUTER -->
2017-05-22 10:12:53 +00:00
\subsection{Router}
2017-05-22 10:19:53 +00:00
\subsubsection{File: base.cfg}
2017-05-22 10:44:49 +00:00
\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/router/base.cfg}
2017-05-22 10:19:53 +00:00
\subsubsection{File: reset.tcl}
2017-05-22 10:44:49 +00:00
\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/router/reset.tcl}
% <!-- LAYER 3 SWITCH -->
2017-05-22 10:12:53 +00:00
2017-05-22 10:44:49 +00:00
\subsection{Layer 3 Switch}
\subsubsection{File: base.cfg}
\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l3switch/base.cfg}
\subsubsection{File: reset.tcl}
2017-05-22 10:47:09 +00:00
\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l3switch/reset-tcl.txt}
2017-05-22 10:12:53 +00:00
2017-05-22 10:44:49 +00:00
% <!-- LAYER 2 SWITCH -->
2017-05-22 10:12:53 +00:00
2017-05-22 10:44:49 +00:00
\subsection{Layer 2 Switch}
2017-05-22 10:19:53 +00:00
\subsubsection{File: base.cfg}
2017-05-22 10:44:49 +00:00
\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l2switch/base.cfg}
2017-05-22 10:19:53 +00:00
\subsubsection{File: reset.tcl}
2017-05-22 10:47:09 +00:00
\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l2switch/reset-tcl.txt}
2017-05-22 10:12:53 +00:00
%
% END SWITCH CONFIG
%
%
% END DOCUMENT
%
2017-05-22 09:53:21 +00:00
\end{document}