af460730c5e4cd70a199f497902d852fbd3d0580
[ach-master.git] / src / common / system.tex
1 %%%
2 %%% system.tex
3 %%% Necessary packages and sytem changes
4 %%%
5 % Document Encoding. important.
6 \usepackage[utf8]{inputenc}
7
8 % changes font encoding to T1
9 \usepackage[T1]{fontenc}
10 \usepackage{textcomp}
11
12 % For searchable pdfs
13 \input glyphtounicode
14 \pdfgentounicode=1
15
16 \usepackage{fixltx2e}
17
18 % Setup KOMA script
19 \usepackage{scrhack}
20 \KOMAoptions{paper=a4%
21   ,fontsize=10pt%
22   ,DIV=12%
23   ,parskip=true%
24 }
25
26 % Language
27 \usepackage[english]{babel}
28
29 % Color
30 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
31 \usepackage{color}
32
33 % Packages for fonts
34 %\usepackage[variablett]{lmodern}
35 \usepackage[scaled=.9]{sourcecodepro}
36 \usepackage[defaultsans]{opensans}
37 \usepackage[final,babel=true]{microtype}[2011/08/18]
38
39 \usepackage{pifont}
40 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
41 \newcommand{\no}{\textcolor{red}{\ding{55}}}
42
43 % Figures and graphics
44 \usepackage{graphicx}
45 \usepackage{epstopdf}
46 \usepackage{float}
47 \usepackage{subfig}
48 \usepackage{placeins}
49 \usepackage{wrapfig}
50 \usepackage{tikz}
51 \usetikzlibrary{shapes,arrows}
52
53 % Tables
54 \usepackage{longtable}
55 \usepackage{booktabs}
56 \renewcommand{\arraystretch}{1.25}
57 \usepackage{multicol}
58
59 % Verbatims and listings
60 \usepackage{fancyvrb}
61 \usepackage[final]{listings}
62
63 % The page
64 \usepackage[footsepline]{scrpage2}
65 \usepackage{lastpage}
66
67 % Misc
68 \usepackage{gitinfo}
69 \usepackage{catchfile}
70 \usepackage{hyperref}
71
72 % for development
73 \usepackage{ifdraft}
74 \ifdraft{%
75   %% Heavy debugging
76   %\usepackage{showframe}
77   \usepackage{blindtext}
78   \usepackage{eso-pic}
79   \newsavebox{\draftPageLine}
80   \newsavebox{\draftWatermark}
81   \AddToShipoutPicture{%
82     \AtPageLowerLeft{\usebox{\draftWatermark}}
83     \AtPageUpperLeft{%
84       \raisebox{-\height}[\height][0pt]{\usebox{\draftPageLine}}}%
85     \AtPageLowerLeft{%
86       \raisebox{\depth}[\height][0pt]{\usebox{\draftPageLine}}}%
87   }
88   % \AtEndDocument{\listoftodos}
89 }{
90   \let\blindtext\relax
91   \let\Blindtext\relax
92   \let\blinddocument\relax
93   \let\Blinddocument\relax
94 }
95
96 %%% Local Variables: 
97 %%% mode: latex
98 %%% TeX-master: "../applied-crypto-hardening"
99 %%% End: