f451d3f9cf765ec5bc021e2e196052b97233e840
[ach-master.git] / src / common / style.tex
1 %%%
2 %%% style.tex
3 %%% Stylistic configuration
4 %%%
5
6 % Colors
7 \definecolor{green}{RGB}{32,113,10}
8 \definecolor{orange}{RGB}{251,111,16}
9 \definecolor{red}{RGB}{247,56,0}
10 \definecolor{blue}{RGB}{0,28,128}
11 \definecolor{lightgreen}{RGB}{187,218,216}
12 \definecolor{intersectgreen}{RGB}{103,133,155}
13 \definecolor{darkblue}{RGB}{76,87,117}
14 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
15 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
16 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
17 \definecolor{lightlightgray}{gray}{0.9}
18
19 %%% Fonts
20 % Fonts are loaded, now is the right time for mictorype.
21 \microtypesetup{stretch=9,shrink=15,step=3,tracking=smallcaps,letterspace=75}
22 % makes default font sans-serif
23  \renewcommand{\familydefault}{\sfdefault}
24
25 % Captions
26 \setcapindent{1em}
27 \addtokomafont{caption}{\small\itshape}
28 \addtokomafont{captionlabel}{\bfseries}
29
30 % Section headers
31 \addtokomafont{disposition}{\color{darkblue}\bfseries}
32
33
34 % Page foot
35 \setkomafont{pagefoot}{\normalfont\sffamily\footnotesize}
36 \ifoot%
37 [Applied Crypto Hardening \textbullet{} Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName]%
38 {Applied Crypto Hardening \textbullet{} Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
39 \cfoot[]{}
40 \ofoot%
41 [page \thepage\ of \pageref{LastPage}]%
42 {page \thepage\ of \pageref{LastPage}}
43 \renewcommand*{\chapterpagestyle}{scrheadings}
44
45 % Epigraph / dictum
46 \newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
47 \renewcommand*{\dictumrule}{}
48 \renewcommand*{\dictumauthorformat}[1]{--- #1}
49 \addtokomafont{dictumtext}{\itshape}
50 \setkomafont{dictumauthor}{\normalfont}
51 \renewcommand{\dictumwidth}{8cm}
52
53 % Graphics
54 %tell TeX where to look for graphics/logos
55 \graphicspath{ {/img/} }
56
57 % Listings
58 \lstset{
59   basicstyle=\ttfamily,
60   keywordstyle=\color{OliveGreen},
61   commentstyle=\color{gray},
62   backgroundcolor=\color{lightlightgray},
63   tabsize=2,
64   captionpos=b,
65   breaklines=true,
66   breakatwhitespace=false,
67   morekeywords={__global__, __device__},% 
68 }
69
70
71 % Hyperref styles
72 \hypersetup{%
73   breaklinks,%
74   colorlinks,%
75   linkcolor=darkblue,citecolor=blue,urlcolor=blue,%
76   breaklinks=true,
77   unicode,%
78   final
79 }
80 \urlstyle{same}
81
82 % Bibliography
83 \bibliographystyle{alphalink}
84
85 %%% Local Variables: 
86 %%% mode: latex
87 %%% TeX-master: "../applied-crypto-hardening"
88 %%% End: