move package loadings to system.tex
[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 \input{common/system}
17
18 % Epigraph / dictum
19 \renewcommand*{\dictumrule}{}
20 \renewcommand*{\dictumauthorformat}[1]{--- #1}
21 \newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
22 \addtokomafont{dictumtext}{\itshape}
23 \setkomafont{dictumauthor}{\normalfont}
24 \renewcommand{\dictumwidth}{8cm}
25
26 % Colours
27 \definecolor{green}{RGB}{32,113,10}
28 \definecolor{orange}{RGB}{251,111,16}
29 \definecolor{red}{RGB}{247,56,0}
30 \definecolor{blue}{RGB}{0,28,128}
31 \definecolor{lightgreen}{RGB}{187,218,216}
32 \definecolor{intersectgreen}{RGB}{103,133,155}
33 \definecolor{darkblue}{RGB}{76,87,117}
34
35 \bibliographystyle{alphalink}
36
37 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
38 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
39 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
40 \definecolor{lightlightgray}{gray}{0.9}
41
42 % makes default font sans-serif
43  \renewcommand{\familydefault}{\sfdefault}
44
45 \setcapindent{1em}
46 \addtokomafont{caption}{\small\itshape}
47 \addtokomafont{captionlabel}{\bfseries}
48
49
50 %
51 % Fonts are loaded, now is the right time for mictorype.
52 \microtypesetup{stretch=9,shrink=15,step=3,tracking=smallcaps,letterspace=75}
53
54
55 \lstset{
56 %language=Bash,                             % Code langugage
57 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
58 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
59 commentstyle=\color{gray},              % Comments font
60 %numbers=left,                           % Line nums position
61 %numberstyle=\tiny,                      % Line-numbers fonts
62 %stepnumber=1,                           % Step between two line-numbers
63 %numbersep=5pt,                          % How far are line-numbers from code
64 backgroundcolor=\color{lightlightgray}, % Choose background color
65 frame=none,                             % A frame around the code
66 tabsize=2,                              % Default tab size
67 captionpos=b,                           % Caption-position = bottom
68 breaklines=true,                        % Automatic line breaking?
69 breakatwhitespace=false,                % Automatic breaks only at whitespace?
70 showspaces=false,                       % Dont make spaces visible
71 showtabs=false,                         % Dont make tabls visible
72 columns=fixed,                          % Column format
73 morekeywords={__global__, __device__},  % 
74 }
75
76
77 %% \todo{} command.
78 % Outputs red TODOs in the document. Requires \usepackage{color}.
79 % Usage: \todo{Document the TODO command.}
80 % Comment out second line to disable.
81 \newcommand{\todo}[1]{}
82 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
83
84 \addtokomafont{disposition}{\color{darkblue}\bfseries}
85 \setkomafont{pagefoot}{\normalfont\sffamily\footnotesize}
86
87 \ifoot%
88 [Applied Crypto Hardening \textbullet{} Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName]%
89 {Applied Crypto Hardening \textbullet{} Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
90 \cfoot[]{}
91 \ofoot%
92 [page \thepage\ of \pageref{LastPage}]%
93 {page \thepage\ of \pageref{LastPage}}
94
95 \renewcommand*{\chapterpagestyle}{scrheadings}
96
97
98 % Creating a horizontal rule
99 \newcommand{\HorRule}{\color{darkblue}%
100   \rule{\linewidth}{1pt}%
101 }
102
103 \date{\today}
104
105 %tell TeX where to look for graphics/logos
106 \graphicspath{ {/img/} }
107
108 \hypersetup{%
109   breaklinks,%
110   colorlinks,%
111   linkcolor=darkblue,citecolor=blue,urlcolor=blue,%
112   breaklinks=true,
113   unicode,%
114   final
115 }
116 \urlstyle{same}
117
118
119 %%% Begin document
120 \begin{document}
121 %\maketitle
122 \pagestyle{scrheadings}
123 % new title page
124 \input{title.tex}
125
126
127 \input{neboltai}
128 \input{acknowledgements}
129 \input{abstract}
130 \tableofcontents
131 \chapter{Introduction}
132 \label{chapter:Intro}
133 \input{whoshouldread}
134 \input{related_publications}
135 \input{howtoread}
136 \input{disclaimer}
137 \input{motivation}
138 \input{methods}
139 %%
140 \chapter{Practical recommendations}
141 \label{chapter:PracticalSettings}
142 \input{practical_settings}
143 %%
144 \chapter{Theory}
145 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{Leopold Kronecker}
146 \label{chapter:Theory}
147 \input{theory}
148 \chapter{Appendix}
149 \input{tools}
150 \input{links}
151 \input{suggested_reading}
152 \input{cipher_suite_names}
153 \input{further_research}
154 %\input{reviewers}
155 \input{bib}
156
157 \end{document}
158 %%% Local Variables: 
159 %%% mode: latex
160 %%% TeX-master: t
161 %%% End: