Modifying `\pdfmapfile' modifiers to not issue warnings on duplicate font map entries...
[ach-master.git] / src / common / system.tex
1 %%%
2 %%% system.tex
3 %%% Necessary packages and sytem changes
4 %%%
5
6 % Document Encoding. important.
7 \usepackage[utf8]{inputenc}
8
9 % changes font encoding to T1
10 \usepackage[T1]{fontenc}
11 \usepackage{textcomp}
12 \usepackage{relsize}
13
14 % For searchable pdfs
15 \input glyphtounicode
16 \pdfgentounicode=1
17
18 \usepackage{fixltx2e}
19
20 % Setup KOMA script
21 \usepackage{scrhack}
22 \KOMAoptions{paper=a4%
23   ,fontsize=10pt%
24   ,DIV=12%
25   ,parskip=true%
26 }
27
28
29 % Language
30 \usepackage[english]{babel}
31
32 % Color
33 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
34 \usepackage{color}
35
36 %
37 % Activate font maps
38 %
39 \pdfmapfile{=SourceCodePro.map}
40 \pdfmapfile{=opensans.map}
41 % Packages for fonts
42 %\usepackage[variablett]{lmodern}
43 \usepackage[scaled=.9]{sourcecodepro}
44 \usepackage[defaultsans]{opensans}
45 \usepackage[final,babel=true]{microtype}[2011/08/18]
46 \DisableLigatures{encoding = T1, family = tt* }
47
48
49 \usepackage{pifont}
50
51 % Figures and graphics
52 \usepackage{graphicx}
53 \usepackage{epstopdf}
54 \usepackage{float}
55 \usepackage{subfig}
56 \usepackage{placeins}
57 \usepackage{wrapfig}
58 \usepackage{tikz}
59 \usetikzlibrary{shapes,arrows}
60
61 % Tables
62 \usepackage{longtable}
63 \usepackage{ctable}
64 % ctable is dumb sometimes
65 \renewcommand{\tmark}[1][a]{%
66   \rlap{\hbox{\@textsuperscript{\rmfamily\itshape #1}}}}
67 \renewcommand{\arraystretch}{1.25}
68 \definecolor{tableshadecolor}{rgb}{0.93,0.93,0.93}
69 \providecommand*\tablefontcommand{}
70 \providecommand*\tableinsidecommand[1][2]{%
71   \def\yes{\textcolor{green}{\ding{52}}\relax\xspace}\relax%
72   \def\no{\textcolor{red}{\ding{56}}\relax\xspace}\relax%
73   \rowcolors*{#1}{tableshadecolor}{}\tablefontcommand%
74 }
75 \setupctable{pos=htbp,doinside=\tableinsidecommand,table,notespar}
76
77 \usepackage{multicol}
78
79 % Verbatims and listings
80 \usepackage{fancyvrb}
81 \usepackage{listings}
82
83 % The page
84 \usepackage[footsepline]{scrpage2}
85 \usepackage{lastpage}
86
87 % Misc
88 \usepackage{xspace}
89 \usepackage{gitinfo}
90 \usepackage{catchfile}
91 \usepackage{marginnote}
92 \usepackage{hyperref}
93 \usepackage{glossaries}[2014/04/04]
94 \usepackage{glossary-mcols}
95 \AtEndPreamble{%
96   \makeglossaries%
97   \input{common/names}%
98 }
99
100 % for development
101 \usepackage{ifdraft}
102 \ifdraft{%
103   \errorcontextlines=999
104   %% Heavy debugging
105   %\usepackage{showframe}
106   \usepackage{blindtext}
107   \usepackage{eso-pic}
108   \newsavebox{\draftPageLine}
109   \newsavebox{\draftWatermark}
110   \AddToShipoutPicture{%
111     \AtPageLowerLeft{\usebox{\draftWatermark}}
112     \AtPageUpperLeft{%
113       \raisebox{-\height}[\height][0pt]{\usebox{\draftPageLine}}}%
114     \AtPageLowerLeft{%
115       \raisebox{\depth}[\height][0pt]{\usebox{\draftPageLine}}}%
116   }
117   % \AtEndDocument{\listoftodos}
118 }{
119   \let\blindtext\relax
120   \let\Blindtext\relax
121   \let\blinddocument\relax
122   \let\Blinddocument\relax
123 }
124
125
126 %%% Local Variables: 
127 %%% mode: latex
128 %%% TeX-master: "../applied-crypto-hardening"
129 %%% End: