remove unused comments, move \pagestyle to style.tex
[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 \pagestyle{scrheadings}
45
46 % Epigraph / dictum
47 \newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
48 \renewcommand*{\dictumrule}{}
49 \renewcommand*{\dictumauthorformat}[1]{--- #1}
50 \addtokomafont{dictumtext}{\itshape}
51 \setkomafont{dictumauthor}{\normalfont}
52 \renewcommand{\dictumwidth}{8cm}
53
54 % Graphics
55 %tell TeX where to look for graphics/logos
56 \graphicspath{ {/img/} }
57
58 % Listings
59 \lstset{
60   basicstyle=\ttfamily,
61   keywordstyle=\color{OliveGreen},
62   commentstyle=\color{gray},
63   backgroundcolor=\color{lightlightgray},
64   tabsize=2,
65   captionpos=b,
66   breaklines=true,
67   breakatwhitespace=false,
68   morekeywords={__global__, __device__},% 
69 }
70
71
72 % Hyperref styles
73 \hypersetup{%
74   breaklinks,%
75   colorlinks,%
76   linkcolor=darkblue,citecolor=blue,urlcolor=blue,%
77   breaklinks=true,
78   unicode,%
79   final
80 }
81 \urlstyle{same}
82
83 % Bibliography
84 \bibliographystyle{alphalink}
85
86 %%% Local Variables: 
87 %%% mode: latex
88 %%% TeX-master: "../applied-crypto-hardening"
89 %%% End: