|
|
@ -1,107 +1,16 @@ |
|
|
|
\documentclass[paper=a4, fontsize=11pt]{scrartcl} |
|
|
|
|
|
|
|
%%%%%% PACKAGES %%%%% |
|
|
|
\usepackage[T1]{fontenc} |
|
|
|
\usepackage{fourier} |
|
|
|
\usepackage[protrusion=true,expansion=true]{microtype} |
|
|
|
|
|
|
|
%%% Lang / Locale |
|
|
|
\usepackage[english]{babel} |
|
|
|
\usepackage[utf8]{inputenc} |
|
|
|
|
|
|
|
%%% Format |
|
|
|
\usepackage{multicol} % multi colums |
|
|
|
\usepackage[margin=2.6cm]{geometry} % margin |
|
|
|
\usepackage{datetime} % dates formatted |
|
|
|
\usepackage{abstract} % abstract |
|
|
|
|
|
|
|
%%% Glossary and references |
|
|
|
\usepackage[acronym]{glossaries} % acronyms |
|
|
|
\usepackage[hidelinks]{hyperref} % removes ugly colored border arround the links |
|
|
|
\usepackage[super]{natbib} % makes the reference as word¹ |
|
|
|
\usepackage{natbib} % references |
|
|
|
\usepackage{url} % \url |
|
|
|
|
|
|
|
%%% Code |
|
|
|
\usepackage{listings} % embed code |
|
|
|
\usepackage{xcolor} % colors with words |
|
|
|
|
|
|
|
%%% Images |
|
|
|
\usepackage{graphicx} |
|
|
|
\usepackage{tikz} |
|
|
|
\usetikzlibrary{arrows,shapes,decorations.pathmorphing,backgrounds,positioning,fit,petri}\usepackage{caption} |
|
|
|
\usepackage{xifthen} |
|
|
|
\usepackage{capt-of} |
|
|
|
|
|
|
|
%%% Math packages |
|
|
|
\usepackage{amsmath,amsfonts,amsthm} |
|
|
|
\usepackage{graphicx} |
|
|
|
\usepackage{url} |
|
|
|
|
|
|
|
%%% Custom sectioning |
|
|
|
\usepackage{sectsty} |
|
|
|
\allsectionsfont{\centering \normalfont\scshape} |
|
|
|
|
|
|
|
%%% Custom headers/footers (fancyhdr package) |
|
|
|
\usepackage{lastpage} |
|
|
|
\usepackage{fancyhdr} |
|
|
|
\pagestyle{fancyplain} |
|
|
|
\fancyhead{} % No page header |
|
|
|
\fancyfoot[L]{} % Empty |
|
|
|
\fancyfoot[C]{} % Empty |
|
|
|
\fancyfoot[R]{\thepage\space of \pageref{LastPage}} % Pagenumbering |
|
|
|
\renewcommand{\headrulewidth}{0pt} % Remove header underlines |
|
|
|
\renewcommand{\footrulewidth}{0pt} % Remove footer underlines |
|
|
|
\setlength{\headheight}{13.6pt} |
|
|
|
|
|
|
|
%%% Equation and float numbering |
|
|
|
\numberwithin{equation}{section} % Equationnumbering: section.eq# |
|
|
|
\numberwithin{figure}{section} % Figurenumbering: section.fig# |
|
|
|
\numberwithin{table}{section} % Tablenumbering: section.tab# |
|
|
|
|
|
|
|
%%% CONFIGURATION |
|
|
|
% Configure code embed |
|
|
|
\hypersetup{pdfborder={0 0 0}} |
|
|
|
\lstdefinestyle{colored}{ |
|
|
|
belowcaptionskip=1\baselineskip, |
|
|
|
breaklines=true, |
|
|
|
frame=L, |
|
|
|
xleftmargin=\parindent, |
|
|
|
language=Ruby, |
|
|
|
showstringspaces=false, |
|
|
|
basicstyle=\footnotesize\ttfamily, |
|
|
|
numberstyle=\color{red}, |
|
|
|
keywordstyle=\color{green}, |
|
|
|
commentstyle=\itshape\color{purple}, |
|
|
|
identifierstyle=\color{blue}, |
|
|
|
stringstyle=\color{orange}, |
|
|
|
} |
|
|
|
\lstset{escapechar=@,style=colored} |
|
|
|
|
|
|
|
% Configure abstract title |
|
|
|
%\renewcommand{\abstractname}{} |
|
|
|
|
|
|
|
% ... |
|
|
|
\usepackage{setspace} |
|
|
|
|
|
|
|
% METADATA |
|
|
|
\input{packages.tex} |
|
|
|
\input{header.tex} |
|
|
|
\loadglsentries[main]{glossary} |
|
|
|
\makeglossaries |
|
|
|
\newcommand{\horrule}[1]{\rule{\linewidth}{#1}} % Horizontal rule |
|
|
|
|
|
|
|
%%% NEW Commands |
|
|
|
\newcommand{\inlinecode}{\texttt} |
|
|
|
\newcommand{\italic}[1]{{\em #1}} |
|
|
|
\newcommand{\italicpl}[1]{{\em #1}{\em s}} |
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
|
|
|
|
\begin{document} |
|
|
|
%\input{glossary.tex} |
|
|
|
\newacronym{NIDS}{NIDS}{Network based Intrusion Detection System} |
|
|
|
\newacronym{NIPS}{NIPS}{Network based Intrusion Prevention System} |
|
|
|
\newacronym{PCRE}{PCRE}{Perl Compatible Regular Expressions} |
|
|
|
\input{titlepage.tex} |
|
|
|
|
|
|
|
\newpage |
|
|
@ -112,7 +21,11 @@ stringstyle=\color{orange}, |
|
|
|
\newpage |
|
|
|
{ |
|
|
|
\onehalfspacing |
|
|
|
\input{body.tex} |
|
|
|
\setlength{\columnsep}{1cm} |
|
|
|
\begin{multicols*}{2} |
|
|
|
\raggedcolumns |
|
|
|
\input{body.tex} |
|
|
|
\end{multicols*} |
|
|
|
} |
|
|
|
|
|
|
|
\newpage |
|
|
@ -120,7 +33,6 @@ stringstyle=\color{orange}, |
|
|
|
\bibliographystyle{agsm} |
|
|
|
\bibliography{report} |
|
|
|
|
|
|
|
\newpage |
|
|
|
\medskip |
|
|
|
\printglossaries |
|
|
|
|
|
|
|