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