mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-09-27 16:09:40 +00:00
82 lines
2 KiB
TeX
82 lines
2 KiB
TeX
% Latex Packages
|
|
\usepackage{import}
|
|
\usepackage[T1]{fontenc}
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage{lmodern}
|
|
\usepackage{geometry}
|
|
\usepackage{listings}
|
|
\usepackage{color}
|
|
\usepackage{graphicx}
|
|
\usepackage{float}
|
|
\usepackage[english]{babel}
|
|
\usepackage{fancyhdr}
|
|
\usepackage{wrapfig}
|
|
\usepackage{array}
|
|
\usepackage{lipsum}
|
|
\usepackage{fancybox}
|
|
\usepackage{varwidth}
|
|
\usepackage{enumitem}
|
|
\usepackage{titlepic}
|
|
|
|
|
|
\input{layout/color} % Load user-defined colors. Some which are used when generating source code listings
|
|
|
|
|
|
\geometry{a4paper,margin=4em}
|
|
|
|
|
|
\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/}{figures/}}
|
|
|
|
|
|
% 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,.svg}
|
|
|
|
% Define fancy header and footer
|
|
\pagestyle{fancy}
|
|
\fancyhf{}
|
|
\fancyhead[LE,RO]{ZBC}
|
|
\fancyhead[RE,LO]{\rightmark}
|
|
\fancyfoot[CE,CO]{\leftmark}
|
|
\fancyfoot[LE,RO]{\thepage}
|
|
|
|
% width of header and footer rule is by default 0px.
|
|
\renewcommand{\headrulewidth}{2pt}
|
|
\renewcommand{\footrulewidth}{1pt}
|
|
|
|
% Use the roman numeric system for pagenumbers
|
|
\pagenumbering{roman}
|
|
|
|
\setlist[itemize,1]{leftmargin=\dimexpr 26pt-.2cm}
|
|
\setlist[itemize,2]{leftmargin=\dimexpr 26pt-.3cm}
|
|
|
|
\setlength{\headheight}{15pt}
|
|
\setlength{\columnsep}{2em}
|
|
|
|
|
|
\subimport{./}{commands} % Import user-defined commands |