titlesec unneeded; color set via komafont
[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[ DIV=calc,%
16                                 paper=a4,%
17                                 fontsize=9pt,%
18                                 %onecolumn]{scrartcl}                                           % KOMA-article class
19                                 onecolumn]{scrreprt}                                            % KOMA-article class
20                                 %onecolumn]{report}                                             % KOMA-article class
21
22
23 \usepackage[utf8]{inputenc}
24
25 \usepackage[english]{babel}                                                                             % English language/hyphenation
26 \usepackage[final,babel=true]{microtype}[2011/08/18]
27 \usepackage{amsmath,amsfonts,amsthm}                                    % Math packages
28 \usepackage{graphicx}
29 %\usepackage[svgnames]{xcolor}                                                                  % Enabling colors by their 'svgnames'
30 \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}        % Custom captions under/above floats
31 \usepackage{epstopdf}                                                                                           % Converts .eps to .pdf
32 \usepackage{subfig}                                                                                                     % Subfigures
33
34 \usepackage[usenames,dvipsnames]{color}
35 \usepackage{float}
36 \usepackage{subfig}
37 %\usepackage{tikz}
38 \usepackage{acronym}
39 \usepackage{amsthm}
40 \usepackage{fancyvrb}
41 \usepackage{listings}
42 \usepackage{longtable}
43
44 % Epigraph / dictum
45 \renewcommand*{\dictumrule}{}
46 \renewcommand*{\dictumauthorformat}[1]{--- #1}
47 \newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
48 \addtokomafont{dictumtext}{\itshape}
49 \setkomafont{dictumauthor}{\normalfont}
50 \renewcommand{\dictumwidth}{8cm}
51
52
53
54 \usepackage{gitinfo}
55
56 % custom changes:
57 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
58 \usepackage{placeins}
59 \usepackage{draftwatermark}
60
61 % human tables
62 \usepackage{booktabs}
63 \renewcommand{\arraystretch}{1.25}
64
65 % side box
66 \usepackage{wrapfig}
67 %\usepackage{tcolorbox}
68 \newenvironment{WrapText}[1][r]
69   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
70   {\endtcolorbox\endwrapfigure}
71
72 % Add text symbols
73 \usepackage{pifont}
74 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
75 \newcommand{\no}{\textcolor{red}{\ding{55}}}
76
77
78 % Colours
79 \definecolor{green}{RGB}{32,113,10}
80 \definecolor{orange}{RGB}{251,111,16}
81 \definecolor{red}{RGB}{247,56,0}
82 \definecolor{blue}{RGB}{0,28,128}
83 \definecolor{lightgreen}{RGB}{187,218,216}
84 \definecolor{intersectgreen}{RGB}{103,133,155}
85 \definecolor{darkblue}{RGB}{76,87,117}
86
87 \bibliographystyle{alphalink}
88
89 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
90 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
91 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
92 \definecolor{lightlightgray}{gray}{0.9}
93
94 % changes font encoding to T1
95 \usepackage[T1]{fontenc}
96 \usepackage{textcomp}
97 % For searchable pdfs
98 \input glyphtounicode
99 \pdfgentounicode=1
100
101 % make font Open Sans
102 \usepackage[defaultsans]{opensans}
103
104 % makes default font sans-serif
105  \renewcommand{\familydefault}{\sfdefault}
106
107 %
108 % Fonts are loaded, now is the right time for mictorype.
109 \microtypesetup{stretch=9,shrink=15,step=3,tracking=smallcaps,letterspace=75}
110
111
112 \lstset{
113 %language=Bash,                             % Code langugage
114 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
115 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
116 commentstyle=\color{gray},              % Comments font
117 %numbers=left,                           % Line nums position
118 %numberstyle=\tiny,                      % Line-numbers fonts
119 %stepnumber=1,                           % Step between two line-numbers
120 %numbersep=5pt,                          % How far are line-numbers from code
121 backgroundcolor=\color{lightlightgray}, % Choose background color
122 frame=none,                             % A frame around the code
123 tabsize=2,                              % Default tab size
124 captionpos=b,                           % Caption-position = bottom
125 breaklines=true,                        % Automatic line breaking?
126 breakatwhitespace=false,                % Automatic breaks only at whitespace?
127 showspaces=false,                       % Dont make spaces visible
128 showtabs=false,                         % Dont make tabls visible
129 columns=fixed,                          % Column format
130 morekeywords={__global__, __device__},  % 
131 }
132
133
134 %% \todo{} command.
135 % Outputs red TODOs in the document. Requires \usepackage{color}.
136 % Usage: \todo{Document the TODO command.}
137 % Comment out second line to disable.
138 \newcommand{\todo}[1]{}
139 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
140
141 \addtokomafont{disposition}{\color{darkblue}\bfseries}
142 % use more of the page
143 \usepackage{fullpage}
144
145 %%% Headers and footers
146 \usepackage{fancyhdr}                                                           % Needed to define custom headers/footers
147         \pagestyle{fancy}                                                               % Enabling the custom headers/footers
148 \usepackage{lastpage}   
149
150 % Header (empty)
151 \lhead{}
152 \chead{}
153 \rhead{}
154 % Footer (you may change this to your own needs)
155 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
156 \cfoot{}
157 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}}      % "Page 1 of 2"
158 \renewcommand{\headrulewidth}{0.0pt}
159 \renewcommand{\footrulewidth}{0.4pt}
160
161
162 % customized spaces between text and footnotes
163 \setlength{\skip\footins}{3\baselineskip}
164
165
166 %%% Creating an initial of the very first character of the content
167 \usepackage{lettrine}
168 \newcommand{\initial}[1]{%
169      \lettrine[lines=3,lhang=0.3,nindent=0em]{
170                                 \color{darkblue}
171                                 {\textsf{#1}}}{}}
172
173 %%% Title, author and date metadata
174 \usepackage{titling}                                                                                            % For custom titles
175
176 %defines horizontal rule for title
177 \newcommand{\HorRule}{\color{darkblue}\rule{\linewidth}{1pt}}
178
179 % no indent on first line of a paragraph
180 \setlength{\parindent}{0cm}
181
182 %tell TeX where to look for graphics/logos
183 \graphicspath{ {/img/} }
184
185 % hyperref needs to be the last package you load.
186 \usepackage[pdftex,breaklinks,colorlinks,linkcolor=darkblue,citecolor=blue,urlcolor=blue]{hyperref}
187
188 % Package to create dummy text
189 \usepackage{blindtext}
190
191
192 %%% Begin document
193 \begin{document}
194
195 %\maketitle
196
197
198 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
199 % The first character should be within \initial{}
200 %\initial{H}\textbf{ere is some sample text to show the initial in the introductory paragraph of this template article. The color and lineheight of the initial can be modified in the preamble of this document.}
201
202 % new title page
203 \input{./title.tex}
204
205
206
207 \input{neboltai}
208 \input{acknowledgements}
209 \input{abstract}
210 \tableofcontents
211 \chapter{Introduction}
212 \label{chapter:Intro}
213 \input{whoshouldread}
214 \input{related_publications}
215 \input{howtoread}
216 \input{disclaimer}
217 \input{motivation}
218 \input{methods}
219 %%
220 \chapter{Practical recommendations}
221 \label{chapter:PracticalSettings}
222 \input{practical_settings}
223 %%
224 \chapter{Theory}
225 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{Leopold Kronecker}
226 \label{chapter:Theory}
227 \input{theory}
228 \chapter{Appendix}
229 \input{tools}
230 \input{links}
231 \input{suggested_reading}
232 \input{cipher_suite_names}
233 \input{further_research}
234 %\input{reviewers}
235 \input{bib}
236
237 \end{document}
238 %%% Local Variables: 
239 %%% mode: latex
240 %%% TeX-master: t
241 %%% End: