-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle_common.tex
174 lines (143 loc) · 5.62 KB
/
style_common.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage[font={small,sf},labelfont={bf},labelsep=endash]{caption}
\usepackage{fouriernc}
\usepackage[detect-all, binary-units, separate-uncertainty=true,
per-mode=symbol, retain-explicit-plus, retain-unity-mantissa=false,
range-phrase={ tot }, list-final-separator={ en },
list-pair-separator={ en }, output-decimal-marker={,}]{siunitx}
\usepackage{setspace}
\setstretch{1.2}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{geometry}
\geometry{a4paper, vmargin=3cm, inner=3cm, outer=2cm, head=14pt}
\usepackage{float}
\usepackage[fleqn]{amsmath}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\usepackage{graphicx}
\graphicspath{{Figures/}}
\usepackage{subfig}
\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{pgfplots}
\usetikzlibrary{plotmarks,circuits.ee.IEC,pgfplots.groupplots,external,calc}
\pgfplotsset{compat=1.3}
\usepackage{minted}
\usepackage{amsthm}
\usepackage{relsize}
\usepackage{xspace}
\usepackage{url}
\usepackage{sansmath}
\usepackage{titling}
\theoremstyle{plain}
\newtheorem*{note}{Note}
\newcommand{\figref}[1]{Figuur~\ref{#1}}
\newcommand{\hisparc}{\textsmaller{HiSPARC}\xspace}
\newcommand{\kascade}{\textsmaller{KASCADE}\xspace}
\newcommand{\sapphire}{\textsmaller{SAPPHiRE}\xspace}
\newcommand{\jsparc}{\textsmaller{jSparc}\xspace}
\newcommand{\hdf}{\textsmaller{HDF5}\xspace}
\newcommand{\aires}{\textsmaller{AIRES}\xspace}
\newcommand{\csv}{\textsmaller{CSV}\xspace}
\newcommand{\tsv}{\textsmaller{TSV}\xspace}
\newcommand{\python}{\textsmaller{Python}\xspace}
\newcommand{\corsika}{\textsmaller{CORSIKA}\xspace}
\newcommand{\labview}{\textsmaller{LabVIEW}\xspace}
\newcommand{\dspmon}{\textsmaller{DSPMon}\xspace}
\newcommand{\daq}{\textsmaller{DAQ}\xspace}
\newcommand{\adc}{\textsmaller{ADC}\xspace}
\newcommand{\adcs}{\textsmaller{ADC}s\xspace}
\newcommand{\Adcs}{A\textsmaller{DC}s\xspace}
\newcommand{\hi}{\textsc{h i}\xspace}
\newcommand{\hii}{\textsc{h ii}\xspace}
\newcommand{\mip}{\textsmaller{MIP}\xspace}
\newcommand{\hisparcii}{\textsmaller{HiSPARC II}\xspace}
\newcommand{\hisparciii}{\textsmaller{HiSPARC III}\xspace}
\newcommand{\pmt}{\textsmaller{PMT}\xspace}
\newcommand{\pmts}{\textsmaller{PMT}s\xspace}
\newcommand{\gps}{\textsmaller{GPS}\xspace}
\DeclareSIUnit{\electronvolt}{\ensuremath{\mathrm{e\!\!\:V}}}
\DeclareSIUnit{\unitsigma}{\ensuremath{\sigma}}
\DeclareSIUnit{\mip}{\textsmaller{MIP}}
\DeclareSIUnit{\adc}{\textsmaller{ADC}}
\DeclareSIUnit{\gauss}{G}
\DeclareSIUnit{\parsec}{pc}
\DeclareSIUnit{\year}{yr}
%% Document style definitions
% macros and commands
\newcommand{\shorttitle}[1]{\def\theshorttitle{#1}}
\newcommand{\docindex}[1]{\def\thedocindex{#1}}
\newcommand{\version}[1]{\def\theversion{#1}}
\newcommand{\setsectionstyle}[2]{
\colorlet{seccolor}{#1}
\def\thesectiontitle{#2}
}
\newcommand{\setdocumentstyle}[4]{
\setsectionstyle{#1}{#2}
\docindex{#3}
\shorttitle{#4}
}
% document types
\newcommand{\docalgemeen}[2]{\setdocumentstyle{red}{Algemeen}{#1}{#2}}
\newcommand{\docinstallatie}[2]{\setdocumentstyle{Goldenrod}{Detector installatie}{#1}{#2}}
\newcommand{\docdetector}[2]{\setdocumentstyle{blue}{Detector}{#1}{#2}}
\newcommand{\docweerstation}[2]{\setdocumentstyle{LightSlateGray}{Weerstation}{#1}{#2}}
\newcommand{\docbliksem}[2]{\setdocumentstyle{orange}{Bliksem}{#1}{#2}}
\newcommand{\docanalyse}[2]{\setdocumentstyle{DarkViolet}{Data analyse}{#1}{#2}}
\newcommand{\docwerkblad}[2]{\setdocumentstyle{ForestGreen}{Werkbladen}{#1}{#2}}
\newcommand{\docdocent}[2]{\setdocumentstyle{DarkKhaki}{Uitwerkingen}{#1}{#2}}
\newcommand{\docopdrachten}[2]{\setdocumentstyle{Silver}{Opdrachten}{#1}{#2}}
\newcommand{\docrecept}[2]{\setdocumentstyle{Navy}{Recept}{#1}{#2}}
\newcommand{\docpython}[2]{\setdocumentstyle{Black}{Python}{#1}{#2}}
\pgfmathsetlengthmacro\stylemarginsep{+1cm}
\pgfmathsetlengthmacro\stylethumbsep{+.75cm}
\newcommand{\rightthumb}{
\begin{tikzpicture}[remember picture, overlay]
% vertical line
\draw[seccolor]
($(current page.north east) + (-\stylemarginsep, -.5cm)$) --
($(current page.south east) + (-\stylemarginsep, .5cm)$);
% thumb
\fill[seccolor]
($(current page.north east) +
(-\stylemarginsep, -2cm -\thedocindex * \stylethumbsep)$)
rectangle +(.5cm, -.5cm);
\end{tikzpicture}
}
\newcommand{\leftthumb}{
\begin{tikzpicture}[remember picture, overlay]
% vertical line
\draw[seccolor]
($(current page.north west) + (\stylemarginsep, -.5cm)$) --
($(current page.south west) + (\stylemarginsep, .5cm)$);
% thumb
\fill[seccolor]
($(current page.north west) +
(\stylemarginsep, -2cm -\thedocindex * \stylethumbsep)$)
rectangle +(-.5cm, -.5cm);
\end{tikzpicture}
}
\renewcommand{\maketitle}{
\suppressfloats
\begin{titlepage}
\thispagestyle{\defaultstyle}
\let\endtitlepage\relax
\begin{tikzpicture}[remember picture, overlay,
titlebox/.append style={seccolor, fill, text=white, minimum height=1cm,
font=\sffamily\huge, draw=none},
authorbox/.append style={minimum height=.5cm, font=\sffamily}]
\node[titlebox, anchor=north west, shift={(3cm, -1cm)}] at
(current page.north west) {\thesectiontitle};
\node[anchor=north west, shift={(2.83cm, -2cm)}] at
(current page.north west) {\includegraphics[scale=.8]{../HiSPARC_header}};
\node[titlebox, anchor=north east, shift={(-\stylemarginsep, -1cm)}] at
(current page.north east) {\thetitle};
\node[authorbox, anchor=north east, shift={(-\stylemarginsep, -2cm)}] at
(current page.north east) {\theauthor};
\end{tikzpicture}
\end{titlepage}
}