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