remove unused or overly verbose comments
[ach-master.git] / src / applied-crypto-hardening.tex
1 %%%
2 %%% Applied Crypto Hardening
3 %%% bettercrypto.org
4 %%%
5 %%%% Based on:
6 %%% LaTeX Template: Two column article
7 %%%
8 %%% Source: http://www.howtotex.com/
9 %%% Feel free to distribute this template, but please keep to referal to http://www.howtotex.com/ here.
10 %%% Date: February 2011
11 %%%%
12
13 %%% Preamble
14 \RequirePackage{fix-cm}
15 \documentclass{scrreprt}
16 \usepackage[utf8]{inputenc}
17
18 \KOMAoptions{paper=a4%
19   ,fontsize=10pt%
20   ,DIV=12%
21   ,parskip=true%
22 }
23
24
25 \usepackage[english]{babel}
26 \usepackage[final,babel=true]{microtype}[2011/08/18]
27 \usepackage{graphicx}
28 \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}
29 \usepackage{epstopdf}
30 \usepackage{subfig}
31
32 \usepackage[usenames,dvipsnames]{color}
33 \usepackage{float}
34 \usepackage{subfig}
35 \usepackage{acronym}
36 \usepackage{amsthm}
37 \usepackage{fancyvrb}
38 \usepackage{listings}
39 \usepackage{longtable}
40
41 % Epigraph / dictum
42 \renewcommand*{\dictumrule}{}
43 \renewcommand*{\dictumauthorformat}[1]{--- #1}
44 \newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
45 \addtokomafont{dictumtext}{\itshape}
46 \setkomafont{dictumauthor}{\normalfont}
47 \renewcommand{\dictumwidth}{8cm}
48
49
50
51 \usepackage{gitinfo}
52
53 % custom changes:
54 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
55 \usepackage{placeins}
56 \usepackage{draftwatermark}
57
58 % human tables
59 \usepackage{booktabs}
60 \renewcommand{\arraystretch}{1.25}
61
62 % side box
63 \usepackage{wrapfig}
64 %\usepackage{tcolorbox}
65 \newenvironment{WrapText}[1][r]
66   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
67   {\endtcolorbox\endwrapfigure}
68
69 % Add text symbols
70 \usepackage{pifont}
71 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
72 \newcommand{\no}{\textcolor{red}{\ding{55}}}
73
74
75 % Colours
76 \definecolor{green}{RGB}{32,113,10}
77 \definecolor{orange}{RGB}{251,111,16}
78 \definecolor{red}{RGB}{247,56,0}
79 \definecolor{blue}{RGB}{0,28,128}
80 \definecolor{lightgreen}{RGB}{187,218,216}
81 \definecolor{intersectgreen}{RGB}{103,133,155}
82 \definecolor{darkblue}{RGB}{76,87,117}
83
84 \bibliographystyle{alphalink}
85
86 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
87 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
88 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
89 \definecolor{lightlightgray}{gray}{0.9}
90
91 % changes font encoding to T1
92 \usepackage[T1]{fontenc}
93 \usepackage{textcomp}
94 % For searchable pdfs
95 \input glyphtounicode
96 \pdfgentounicode=1
97
98 % make font Open Sans
99 \usepackage[defaultsans]{opensans}
100
101 % makes default font sans-serif
102  \renewcommand{\familydefault}{\sfdefault}
103
104 %
105 % Fonts are loaded, now is the right time for mictorype.
106 \microtypesetup{stretch=9,shrink=15,step=3,tracking=smallcaps,letterspace=75}
107
108
109 \lstset{
110 %language=Bash,                             % Code langugage
111 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
112 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
113 commentstyle=\color{gray},              % Comments font
114 %numbers=left,                           % Line nums position
115 %numberstyle=\tiny,                      % Line-numbers fonts
116 %stepnumber=1,                           % Step between two line-numbers
117 %numbersep=5pt,                          % How far are line-numbers from code
118 backgroundcolor=\color{lightlightgray}, % Choose background color
119 frame=none,                             % A frame around the code
120 tabsize=2,                              % Default tab size
121 captionpos=b,                           % Caption-position = bottom
122 breaklines=true,                        % Automatic line breaking?
123 breakatwhitespace=false,                % Automatic breaks only at whitespace?
124 showspaces=false,                       % Dont make spaces visible
125 showtabs=false,                         % Dont make tabls visible
126 columns=fixed,                          % Column format
127 morekeywords={__global__, __device__},  % 
128 }
129
130
131 %% \todo{} command.
132 % Outputs red TODOs in the document. Requires \usepackage{color}.
133 % Usage: \todo{Document the TODO command.}
134 % Comment out second line to disable.
135 \newcommand{\todo}[1]{}
136 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
137
138 \addtokomafont{disposition}{\color{darkblue}\bfseries}
139 % use more of the page
140 %\usepackage{fullpage}
141
142 % Detect if we can use the brand new scrlayer
143 % else use the good old scrpage2
144 \newif\ifscrlayer
145 {\def\tempa#1 v#2 #3!{\ifdim #2pt>3.11pt\relax \global\scrlayertrue\else \scrlayerfalse\fi}
146 \expandafter\tempa\KOMAScriptVersion!}
147 \ifscrlayer
148 \usepackage[footsepline]{scrlayer-scrpage}
149 \else
150 \usepackage[footsepline]{scrpage2}
151 \fi
152
153 \usepackage{lastpage}
154
155 \ifoot%
156 [{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}]%
157 {{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}}
158 \cfoot[]{}
159 \ofoot%
160 [{\footnotesize page \thepage\ of \pageref{LastPage}}]%
161 {{\footnotesize page \thepage\ of \pageref{LastPage}}}
162
163 % Creating a horizontal rule
164 \newcommand{\HorRule}{\color{darkblue}%
165   \rule{\linewidth}{1pt}%
166 }
167
168 \date{\today}
169
170 %tell TeX where to look for graphics/logos
171 \graphicspath{ {/img/} }
172
173 % hyperref needs to be the last package you load.
174 \usepackage[pdftex,breaklinks,colorlinks,linkcolor=darkblue,citecolor=blue,urlcolor=blue]{hyperref}
175
176 % Package to create dummy text
177 \usepackage{blindtext}
178 % debug page layout
179 %\usepackage{showframe}
180
181 %%% Begin document
182 \begin{document}
183
184 %\maketitle
185 \pagestyle{scrheadings}
186 % new title page
187 \input{title.tex}
188
189
190
191 \input{neboltai}
192 \input{acknowledgements}
193 \input{abstract}
194 \tableofcontents
195 \chapter{Introduction}
196 \label{chapter:Intro}
197 \input{whoshouldread}
198 \input{related_publications}
199 \input{howtoread}
200 \input{disclaimer}
201 \input{motivation}
202 \input{methods}
203 %%
204 \chapter{Practical recommendations}
205 \label{chapter:PracticalSettings}
206 \input{practical_settings}
207 %%
208 \chapter{Theory}
209 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{Leopold Kronecker}
210 \label{chapter:Theory}
211 \input{theory}
212 \chapter{Appendix}
213 \input{tools}
214 \input{links}
215 \input{suggested_reading}
216 \input{cipher_suite_names}
217 \input{further_research}
218 %\input{reviewers}
219 \input{bib}
220
221 \end{document}
222 %%% Local Variables: 
223 %%% mode: latex
224 %%% TeX-master: t
225 %%% End: