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