]> git.somenet.org - pub/jan/netsec2.git/blob - report/main.tex
maintainance commit
[pub/jan/netsec2.git] / report / main.tex
1 \RequirePackage{snapshot} % stats of included files: $filename.dep
2
3 \documentclass[10pt,a4paper,ngerman]{article}
4 \usepackage[ngerman]{babel}
5
6 %%%%% Formatting and encoding %%%%%
7 % encoding
8 \usepackage[T1]{fontenc}
9 \usepackage[utf8]{inputenc}
10
11 % page
12 \usepackage[columnsep=1.75cm,lmargin=1.75cm,rmargin=1.75cm,tmargin=2.5cm,bmargin=2.5cm]{geometry}
13 \setlength{\parindent}{0pt}
14
15 \usepackage{fancyhdr}
16 \pagestyle{fancy}
17 \lhead{}
18 \chead{}
19 \rhead{}
20 \cfoot{}
21 \fancyhead[LE,RO]{\leftmark}
22 \fancyfoot[LE,RO]{\thepage}
23
24 % Use sans serif font.
25 \renewcommand*{\familydefault}{\sfdefault}
26
27 % but typewriter font for lstlistings
28 \lstset{
29         basicstyle=\ttfamily\small
30 }
31
32 % change heading fontsizes.
33 \usepackage{sectsty}
34 \subsectionfont{\normalsize}
35 \subsubsectionfont{\small}
36
37 % \chapter hacks
38 % Create \Hide command (used for chapters)
39 \usepackage[explicit]{titlesec}
40 \newcommand*\Hide{\titleformat{\chapter}[display]{}{}{0pt}{\Huge}\titleformat{\part}{}{}{0pt}{}}
41
42 % inhibit creation of new double page on new chapter.
43 \usepackage{etoolbox}
44 \makeatletter
45 \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
46 \makeatother
47
48 % change heading margins.
49 \titlespacing*{\chapter}{0pt}{0pt}{-40pt}
50 \titlespacing*{\section}{0pt}{9pt}{3pt}
51 \titlespacing*{\subsection}{0pt}{6pt}{0pt}
52 \titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
53
54 % make \paragraph do newlines
55 \makeatletter
56 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
57   {-.75ex \@plus -1ex \@minus -0.2ex}
58   {0.01pt}
59   {\normalfont\normalsize\bfseries}
60 }
61 \makeatother
62
63 %%% TOC changes %%%
64 % inhibit "Contents" Head in TOC
65 \makeatletter
66 \renewcommand\tableofcontents{\@starttoc{toc}}
67 \makeatother
68
69 %make toc consider Chapter and section only.
70 \setcounter{tocdepth}{2}
71
72 % disable chapter, section, ... numbering
73 \setcounter{secnumdepth}{-1}
74
75 %%% /TOC changes %%%
76
77 % make footnote numbering reset on every page.
78 \usepackage[hang,flushmargin,perpage]{footmisc}
79 %%%%% / Formatting %%%%%
80
81 % includable git commit info
82 \usepackage[missing=run\ build.sh\ or\ gitinfohook.sh]{gitinfo}
83
84 % Fürs "last generated" Datum
85 \usepackage[iso]{isodate}
86
87 % Image import stuff
88 \usepackage[absolute]{textpos}
89 \usepackage{graphicx}
90 \DeclareGraphicsExtensions{.pdf,.png,.jpg}
91
92 % clickable references/links/...
93 \usepackage{hyperref}
94
95 % euro-sign
96 \usepackage{eurosym}
97 \DeclareUnicodeCharacter{20AC}{\euro}
98
99 % frames
100 \usepackage[framemethod=default]{mdframed}
101 \newmdenv[linecolor=red,backgroundcolor=yellow]{yellowframe}
102
103 % quotes
104 \usepackage[babel,german=quotes]{csquotes}
105
106 \usepackage{listings}
107 \lstset{literate=%
108 {Ö}{{\"O}}1
109 {Ä}{{\"A}}1
110 {Ü}{{\"U}}1
111 {ß}{{\ss}}2
112 {ü}{{\"u}}1
113 {ä}{{\"a}}1
114 {ö}{{\"o}}1
115 }
116
117 \usepackage{tabularx}
118
119 % schei encoding
120 \usepackage{amssymb,graphicx,stackengine,xcolor}
121 \def\ucr{\scalebox{1}{\stackinset{c}{-.75pt}{c}{0pt}{
122   \textcolor{white}{\sffamily\bfseries\footnotesize ?}}{
123   \rotatebox{35}{$\blacksquare$}}}}
124
125 % START DOCUMENT
126 \begin{document}\thispagestyle{empty}
127 \hspace{40pt}
128 \section*{Network Security - Advanced Topics (VU 389.160)}
129 \textbf{2015W}
130
131 \section*{CYBERLAB CYBERREPORT}
132 \textbf{Cyberministry of Cyberaffairs}
133
134 \section*{David Kaufmann}
135 \textbf{0700719\\\url{mailto:astra@ionic.at}}\\
136
137 \section*{Jan Vales}
138 \textbf{0527718\\\url{mailto:jan@jvales.net}}\\\\
139
140 \vspace{\fill}
141
142 \section*{Table of Contents}\begin{footnotesize}\tableofcontents\end{footnotesize}
143 \subsection*{Version}\begin{footnotesize}\url{http://cgit.ionic.at/?p=lva/15ws/netsec2/}\\
144 git clone \url{ssh://git@git.ionic.at:22/lva/15ws/netsec2}\\
145 This is revision: \textbf{\gitAbbrevHash}. Document (.tex) compiled on: \textbf{\today}
146 \end{footnotesize}\vspace{\fill}\newpage
147
148 \input{exercise1.tex}\vspace{\fill}\newpage
149 \input{exercise2.tex}\vspace{\fill}\newpage
150 \input{exercise3.tex}\vspace{\fill}\newpage
151 \input{easteregg.tex}
152
153 \end{document}