Nicer tables
[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
40
41 \usepackage{pifont}
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{ctable}
56 % ctable is dumb sometimes
57 \renewcommand{\tmark}[1][a]{%
58   \rlap{\hbox{\@textsuperscript{\rmfamily\itshape #1}}}}
59 \renewcommand{\arraystretch}{1.25}
60 \definecolor{tableshadecolor}{rgb}{0.93,0.93,0.93}
61 \providecommand*\tablefontcommand{}
62 \providecommand*\tableinsidecommand[1][2]{%
63   \def\yes{\textcolor{green}{\ding{52}}\relax\xspace}\relax%
64   \def\no{\textcolor{red}{\ding{56}}\relax\xspace}\relax%
65   \rowcolors*{#1}{tableshadecolor}{}\tablefontcommand%
66 }
67 \setupctable{pos=htbp,doinside=\tableinsidecommand,table,notespar}
68
69 \usepackage{multicol}
70
71 % Verbatims and listings
72 \usepackage{fancyvrb}
73 \usepackage{listings}
74
75 % The page
76 \usepackage[footsepline]{scrpage2}
77 \usepackage{lastpage}
78
79 % Misc
80 \usepackage{xspace}
81 \usepackage{gitinfo}
82 \usepackage{catchfile}
83 \usepackage{marginnote}
84 \usepackage{hyperref}
85
86 % for development
87 \usepackage{ifdraft}
88 \ifdraft{%
89   \errorcontextlines=999
90   %% Heavy debugging
91   %\usepackage{showframe}
92   \usepackage{blindtext}
93   \usepackage{eso-pic}
94   \newsavebox{\draftPageLine}
95   \newsavebox{\draftWatermark}
96   \AddToShipoutPicture{%
97     \AtPageLowerLeft{\usebox{\draftWatermark}}
98     \AtPageUpperLeft{%
99       \raisebox{-\height}[\height][0pt]{\usebox{\draftPageLine}}}%
100     \AtPageLowerLeft{%
101       \raisebox{\depth}[\height][0pt]{\usebox{\draftPageLine}}}%
102   }
103   % \AtEndDocument{\listoftodos}
104 }{
105   \let\blindtext\relax
106   \let\Blindtext\relax
107   \let\blinddocument\relax
108   \let\Blinddocument\relax
109 }
110
111
112 %%% Local Variables: 
113 %%% mode: latex
114 %%% TeX-master: "../applied-crypto-hardening"
115 %%% End: