Revert "Revert "Merge pull request #36 from krono/krono/draft-enhanchement""
[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{lmodern}
35 \usepackage[defaultsans]{opensans}
36 \usepackage[final,babel=true]{microtype}[2011/08/18]
37
38 \usepackage{pifont}
39 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
40 \newcommand{\no}{\textcolor{red}{\ding{55}}}
41
42 % Figures and graphics
43 \usepackage[final]{graphicx}
44 \usepackage{epstopdf}
45 \usepackage{float}
46 \usepackage{subfig}
47 \usepackage{placeins}
48 \usepackage{wrapfig}
49 \usepackage{tikz}
50 \usetikzlibrary{shapes,arrows}
51
52 % Tables
53 \usepackage{longtable}
54 \usepackage{booktabs}
55 \renewcommand{\arraystretch}{1.25}
56 \usepackage{multicol}
57
58 % Verbatims and listings
59 \usepackage{fancyvrb}
60 \usepackage[final]{listings}
61
62 % The page
63 \usepackage[footsepline]{scrpage2}
64 \usepackage{lastpage}
65
66 % Misc
67 \usepackage{gitinfo}
68 \usepackage{catchfile}
69 \usepackage{hyperref}
70
71 % for development
72 \usepackage{ifdraft}
73 \ifdraft{%
74   %% Heavy debugging
75   %\usepackage{showframe}
76   \usepackage{blindtext}
77   \usepackage{eso-pic}
78   \newsavebox{\draftPageLine}
79   \newsavebox{\draftWatermark}
80   \AddToShipoutPicture{%
81     \AtPageLowerLeft{\usebox{\draftWatermark}}
82     \AtPageUpperLeft{%
83       \raisebox{-\height}[\height][0pt]{\usebox{\draftPageLine}}}%
84     \AtPageLowerLeft{%
85       \raisebox{\depth}[\height][0pt]{\usebox{\draftPageLine}}}%
86   }
87   % \AtEndDocument{\listoftodos}
88 }{
89   \let\blindtext\relax
90   \let\Blindtext\relax
91   \let\blinddocument\relax
92   \let\Blinddocument\relax
93 }
94
95 %%% Local Variables: 
96 %%% mode: latex
97 %%% TeX-master: "../applied-crypto-hardening"
98 %%% End: