2017-05-23 09:01:04 +00:00
|
|
|
% Latex Packages
|
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
|
|
\usepackage{lmodern}
|
|
|
|
\usepackage{geometry}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{color}
|
2017-05-30 17:50:42 +00:00
|
|
|
\usepackage[usenames,dvipsnames,svgnames]{xcolor}
|
2017-05-23 09:01:04 +00:00
|
|
|
\usepackage{graphicx}
|
2017-05-24 17:03:14 +00:00
|
|
|
\usepackage[numbers,square,sectionbib,comma,nonamebreak,elide]{natbib}
|
2017-05-23 09:01:04 +00:00
|
|
|
\usepackage{float}
|
|
|
|
\usepackage[english]{babel}
|
|
|
|
\usepackage{fancyhdr}
|
|
|
|
\usepackage{wrapfig}
|
|
|
|
\usepackage{array}
|
|
|
|
\usepackage{lipsum}
|
|
|
|
\usepackage{fancybox}
|
|
|
|
\usepackage{varwidth}
|
|
|
|
\usepackage{enumitem}
|
|
|
|
\usepackage{titlepic}
|
2017-05-24 17:03:14 +00:00
|
|
|
\usepackage[nottoc]{tocbibind}
|
|
|
|
\usepackage{url}
|
2017-05-24 22:36:41 +00:00
|
|
|
\usepackage[showisoZ]{datetime2}
|
2017-05-26 00:40:51 +00:00
|
|
|
%\usepackage{lipsum}
|
|
|
|
%\usepackage{titling}
|
|
|
|
\usepackage{transparent}
|
2017-05-26 12:16:09 +00:00
|
|
|
\usepackage{soul}
|
2017-05-30 13:08:37 +00:00
|
|
|
\usepackage{caption}
|
|
|
|
\usepackage{enumitem}
|
|
|
|
\usepackage{amssymb}
|
2017-05-30 13:26:58 +00:00
|
|
|
\usepackage{tikzsymbols} % http://ctan.math.utah.edu/ctan/tex-archive/graphics/pgf/contrib/tikzsymbols/tikzsymbols.pdf
|
|
|
|
\usepackage{textcomp}
|
|
|
|
\usepackage{parskip}
|
2017-05-30 14:07:12 +00:00
|
|
|
\usepackage{fourier}
|
|
|
|
\usepackage{array}
|
|
|
|
\usepackage{makecell}
|
2017-05-30 20:25:51 +00:00
|
|
|
\usepackage{inconsolata}
|
|
|
|
\usepackage{blindtext}
|
|
|
|
\usepackage{expdlist}
|
2017-05-25 22:53:37 +00:00
|
|
|
|
2017-05-23 09:01:04 +00:00
|
|
|
|
2017-05-24 22:36:41 +00:00
|
|
|
\bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles
|
2017-05-23 09:01:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
% Path where images are located relative
|
|
|
|
% to the file main.tex
|
|
|
|
\graphicspath{{img/}{figures/}}
|
|
|
|
|
|
|
|
|
|
|
|
% In which order to look after images in
|
|
|
|
% declared graphicspath{}'s
|
|
|
|
% 1. Low-quality JPG
|
|
|
|
% 2. Med-quality PNG
|
|
|
|
% 3. High-quality PDF
|
2017-05-24 22:36:41 +00:00
|
|
|
\DeclareGraphicsExtensions{.jpg,.png,.pdf}
|
2017-05-23 09:01:04 +00:00
|
|
|
|
2017-05-25 22:53:37 +00:00
|
|
|
|
|
|
|
\fancypagestyle{fancybook}{%
|
|
|
|
\fancyhf{}%
|
|
|
|
% Note the ## here. It's required because \fancypagestyle is making a macro (\ps@fancybook).
|
|
|
|
% If we just wrote #1, TeX would think that it's the argument to \ps@fancybook, but
|
|
|
|
% \ps@fancybook doesn't take any arguments, so TeX would complain with an error message.
|
|
|
|
% You are not expected to understand this.
|
|
|
|
\renewcommand*{\sectionmark}[1]{ \markright{\thesection\ ##1} }%
|
|
|
|
\renewcommand*{\chaptermark}[1]{ \markboth{\chaptername\ \thechapter: ##1}{} }%
|
|
|
|
% Increase the length of the header such that the folios
|
|
|
|
% (typography jargon for page numbers) move into the margin
|
|
|
|
\fancyhfoffset[LE]{6mm}% slightly less than 0.25in
|
|
|
|
\fancyhfoffset[RO]{6mm}%
|
|
|
|
% Put some space and a vertical bar between the folio and the rest of the header
|
|
|
|
\fancyhead[LE]{\color{GreenYellow}\thepage\hskip3mm\vrule\hskip3mm\leftmark}%
|
|
|
|
\fancyhead[RO]{\color{GreenYellow}\rightmark\hskip3mm\vrule\hskip3mm\thepage}%
|
|
|
|
}
|
|
|
|
\pagestyle{fancybook}
|
2017-05-23 09:01:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
% Use the roman numeric system for pagenumbers
|
|
|
|
\pagenumbering{roman}
|
|
|
|
|
2017-05-25 22:53:37 +00:00
|
|
|
|
2017-05-30 13:08:37 +00:00
|
|
|
\input{commands} % Import user-defined commands
|
2017-05-23 10:52:35 +00:00
|
|
|
|
2017-05-25 22:53:37 +00:00
|
|
|
|
2017-05-23 10:52:35 +00:00
|
|
|
\input{layout/color} %user-defined colors
|
2017-05-23 09:01:04 +00:00
|
|
|
|
2017-05-25 22:53:37 +00:00
|
|
|
|
2017-05-23 10:52:35 +00:00
|
|
|
\lstdefinestyle{mystyle}{
|
2017-05-30 17:50:42 +00:00
|
|
|
language=TeX,
|
|
|
|
backgroundcolor=\color{backcolour},
|
|
|
|
commentstyle=\color{codegreen}\ttfamily,
|
2017-05-23 10:52:35 +00:00
|
|
|
keywordstyle=\color{magenta},
|
|
|
|
numberstyle=\tiny\color{codegray},
|
|
|
|
stringstyle=\color{codepurple},
|
2017-05-30 17:50:42 +00:00
|
|
|
basicstyle=\scriptsize\ttfamily,
|
|
|
|
breakatwhitespace=false,
|
|
|
|
breaklines=true,
|
|
|
|
captionpos=b,
|
|
|
|
keepspaces=true,
|
|
|
|
numbers=left,
|
|
|
|
showspaces=false,
|
2017-05-23 10:52:35 +00:00
|
|
|
showstringspaces=false,
|
2017-05-30 17:50:42 +00:00
|
|
|
showtabs=false,
|
|
|
|
tabsize=4,
|
|
|
|
abovecaptionskip=5em,
|
|
|
|
aboveskip=3em,
|
|
|
|
belowcaptionskip=5em,
|
|
|
|
belowskip=3em,
|
|
|
|
upquote=true,
|
|
|
|
numbersep=8pt,
|
|
|
|
rulecolor=\color{black},
|
2017-05-23 10:52:35 +00:00
|
|
|
}
|
2017-05-30 20:25:51 +00:00
|
|
|
|
|
|
|
|
2017-05-30 19:51:17 +00:00
|
|
|
\lstdefinestyle{plaintxt}{
|
|
|
|
language=TeX,
|
|
|
|
numbers=none,
|
|
|
|
frame=trBL,
|
|
|
|
frameround=fttt,
|
|
|
|
backgroundcolor=\color{white},
|
2017-05-30 20:25:51 +00:00
|
|
|
boxpos=c,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\lstdefinelanguage{cisco}{
|
|
|
|
keywords={
|
|
|
|
end,
|
|
|
|
hostname,
|
|
|
|
Interface int,
|
|
|
|
ip,
|
|
|
|
line,
|
|
|
|
login,
|
|
|
|
network,
|
|
|
|
no,
|
|
|
|
router,
|
|
|
|
sh,
|
|
|
|
show,
|
|
|
|
shut,
|
|
|
|
shutdown,
|
|
|
|
version,
|
|
|
|
vlan,
|
|
|
|
vrf,
|
|
|
|
},
|
|
|
|
keywordstyle=\color{blue}\bfseries,
|
|
|
|
ndkeywords={
|
|
|
|
addr,
|
|
|
|
address,
|
|
|
|
aux,
|
|
|
|
bgp,
|
|
|
|
con,
|
|
|
|
console,
|
|
|
|
dhcp,
|
|
|
|
eigrp,
|
|
|
|
g,
|
|
|
|
GigabitEthernet,
|
|
|
|
isis,
|
|
|
|
ospf,
|
|
|
|
ospfv3,
|
|
|
|
pool,
|
|
|
|
rip,
|
|
|
|
vty,
|
|
|
|
},
|
|
|
|
ndkeywordstyle=\color{darkgray}\bfseries,
|
|
|
|
identifierstyle=\color{black},
|
|
|
|
sensitive=false,
|
|
|
|
comment=[l]{!},
|
|
|
|
commentstyle=\color{purple}\ttfamily,
|
|
|
|
stringstyle=\color{red}\ttfamily,
|
2017-05-30 19:51:17 +00:00
|
|
|
}
|
2017-05-24 22:36:41 +00:00
|
|
|
|
2017-05-25 22:53:37 +00:00
|
|
|
|
2017-05-24 22:36:41 +00:00
|
|
|
\geometry{a4paper,margin=2cm}
|
|
|
|
\setlength{\columnsep}{1.5cm} %space between columns
|
|
|
|
\setlength{\headheight}{15pt}
|
|
|
|
\setlength{\footnotesep}{0.5cm} %space between footnotes:
|
|
|
|
\setlength{\skip\footins}{2cm} %space between the text body and the footnotes
|
|
|
|
\setlist[itemize,1]{leftmargin=\dimexpr 26pt-.2cm}
|
|
|
|
\setlist[itemize,2]{leftmargin=\dimexpr 26pt-.3cm}
|
2017-05-30 13:08:37 +00:00
|
|
|
\lstset{style=mystyle} %apply lst styling
|
|
|
|
|
|
|
|
|
|
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
|
|
|
|
|
|
|
|
|
|
\DeclareCaptionFormat{myformat}{%
|
|
|
|
% #1: label (e.g. "Table 1")
|
|
|
|
% #2: separator (e.g. ": ")
|
|
|
|
% #3: caption text
|
|
|
|
\begin{varwidth}{\linewidth}%
|
|
|
|
\centering
|
|
|
|
#1#2#3%
|
|
|
|
\end{varwidth}%
|
|
|
|
}
|
|
|
|
\captionsetup{format=myformat}% global activation
|
|
|
|
|
|
|
|
|
|
|
|
\newlist{todolist}{itemize}{2}
|
|
|
|
\setlist[todolist]{label=$\square$}
|
|
|
|
\usepackage{pifont}
|
|
|
|
\newcommand{\cmark}{\ding{51}}%
|
|
|
|
\newcommand{\xmark}{\ding{55}}%
|
|
|
|
\newcommand{\done}{\rlap{$\square$}{\raisebox{2pt}{\large\hspace{1pt}\cmark}}%
|
|
|
|
\hspace{-2.5pt}}
|
|
|
|
\newcommand{\wontfix}{\rlap{$\square$}{\large\hspace{1pt}\xmark}}
|
2017-05-30 14:07:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
\renewcommand\theadalign{cb}
|
|
|
|
\renewcommand\theadfont{\bfseries}
|
|
|
|
\renewcommand\theadgape{\Gape[4pt]}
|
|
|
|
\renewcommand\cellgape{\Gape[4pt]}
|