17cefa5d7bd49f661d7aaa1d0f1b8bb0ddf42169
[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 %  literate={###CIPHERSTRINGB###}{{\CIPHERSTRINGB}}254,
61   basicstyle=\ttfamily,
62   keywordstyle=\color{OliveGreen},
63   commentstyle=\color{gray},
64   backgroundcolor=\color{lightlightgray},
65   upquote=true,
66   tabsize=2,
67   captionpos=b,
68   breaklines=true,
69   breakatwhitespace=false,
70   inputencoding=utf8,
71   prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
72   morekeywords={__global__, __device__},% 
73   escapechar=\`,
74 }
75
76
77 % Hyperref styles
78 \hypersetup{%
79   breaklinks,%
80   colorlinks,%
81   linkcolor=darkblue,citecolor=blue,urlcolor=blue,%
82   breaklinks=true,%
83   unicode,%
84   pdfnewwindow=true,%
85   final
86 }
87 \urlstyle{same}
88
89 % Bibliography
90 \bibliographystyle{alphalink}
91
92 % Disable single lines at the start of a paragraph (Schusterjungen)
93 \clubpenalty = 10000
94 % Disable single lines at the end of a paragraph (Hurenkinder)
95 \widowpenalty = 10000 
96 \displaywidowpenalty = 10000 % formulas
97 \setlength{\textfloatsep}{\baselineskip}
98 \setlength{\floatsep}{\baselineskip}
99
100 \frenchspacing
101 \raggedbottom
102
103 % customized spaces between text and footnotes
104 \setlength{\skip\footins}{2\baselineskip}
105
106 % Better float parameters: (from the TeX FAQ)
107 \renewcommand{\topfraction}{.85}
108 \renewcommand{\bottomfraction}{.7}
109 \renewcommand{\textfraction}{.15}
110 \renewcommand{\floatpagefraction}{.66}
111 \renewcommand{\dbltopfraction}{.66}
112 \renewcommand{\dblfloatpagefraction}{.66}
113 \setcounter{topnumber}{9}
114 \setcounter{bottomnumber}{9}
115 \setcounter{totalnumber}{20}
116 \setcounter{dbltopnumber}{9}
117
118 %%% Local Variables: 
119 %%% mode: latex
120 %%% TeX-master: "../applied-crypto-hardening"
121 %%% End: