-
Notifications
You must be signed in to change notification settings - Fork 1
/
00-DivaHeader.tex
392 lines (342 loc) · 12.5 KB
/
00-DivaHeader.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
\documentclass[a4paper,12pt,oneside]{book}
%---------
% packages
%---------
\usepackage[dvips]{graphicx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{color}
\usepackage[svgnames]{xcolor}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{array}
\usepackage[left=2.5cm, right=2.5cm, top=2cm, bottom=3cm]{geometry}
\usepackage{colortbl}
\usepackage{amssymb}
\usepackage{fancybox}
\usepackage{float}
\usepackage{epic}
\usepackage{curves}
\usepackage{subfigure}
\usepackage{subeqnarray}
\usepackage{hyperref}
\usepackage{url}
\usepackage{lscape}
%\usepackage{lettrine}
%\usepackage{textcomp}
\usepackage{multicol}
\usepackage{caption}
\usepackage{wasysym}
%\usepackage{mathbx}
\usepackage{natbib}
\usepackage{ifpdf}
\usepackage{minitoc}
\usepackage{xspace}
\usepackage{doi}
\usepackage{times}
\usepackage{tikz}
\usepackage{listings}
\usepackage{makeidx}
\usepackage{booktabs}
\usepackage[explicit]{titlesec}
%\usepackage{texgraph}
\usepackage{epic,eepic}
\usepackage{rotating}
\usepackage{etex}
\usepackage[skins]{tcolorbox}
\usepackage{fontawesome}
\usepackage{academicons}
\usepackage{titling}
\usepackage{GoSans}
\lstdefinestyle{Bash}
{language=bash,
keywordstyle=\color{DarkGray},
basicstyle=\ttfamily,
alsoletter={:~$},
commentstyle=\color{DimGray},
morekeywords=[2]{charles@gher13:},
keywordstyle=[2]{\color{DimGray}},
literate={\$}{{\textcolor{DimGray}{\$}}}1
{:}{{\textcolor{DimGray}{:}}}1
{~}{{\textcolor{DimGray}{\textasciitilde}}}1,
}
\lstset{
breaklines = true,
frame = single,
rulecolor= \color{gray},
}
%$
\lstdefinestyle{Matlab}
{language=matlab,
keywordstyle=\color{DarkGray},
basicstyle=\ttfamily,
alsoletter={:~$},
commentstyle=\color{dkgreen},
morekeywords=[2]{charles@gher13:},
keywordstyle=[2]{\color{DimGray}},
literate={\$}{{\textcolor{DimGray}{\$}}}1
{:}{{\textcolor{DimGray}{:}}}1
{~}{{\textcolor{DimGray}{\textasciitilde}}}1,
}
\lstset{
breaklines = true,
frame = single,
rulecolor= \color{gray},
}
%$
% paths + extensions for the figures
\DeclareGraphicsExtensions{.jpg,.pdf,.JPG,.png,.PNG}
\graphicspath{
{./figures/preprocessing/},{./figures/postprocessing/},{./figures/icones/},{./figures/test_cases/},
{./figures/examples/},{./figures/gallery/},{./figures/images/},{./figures/GUI/},{./figures/analysis/},
{./figures/errors/},{./figures/advection/},{./figures/papers/},{./figures/divaonweb/},{./figures/icones/}
}
\tikzstyle{na} = [baseline=-.5ex]
\usetikzlibrary{arrows,shapes,backgrounds}
%\tikzstyle{every picture}+=[remember picture]
\usetikzlibrary{spy}
% fonts
\newfontfamily\mytitle[Path = /home/ctroupin/.fonts/]{Varela-Regular.otf}
\makeatletter%
\special{pdf: put @thispage <</Group << /S /Transparency /I true /CS /DeviceRGB>> >>}%
\makeatother%
%------------------------
%biblio style
%------------------------
\bibliographystyle{divagher}
%\bibliographystyle{plain}
% ------------------------------------------------
% NEW COLOR
\definecolor{gris}{rgb}{0.7,0.7,0.7}
\definecolor{darkgreen}{rgb}{0.14 0.73 0.21}
\definecolor{greybackground}{RGB}{235, 235, 235}
\definecolor{bluegher}{RGB}{4,99,128} % blue
\definecolor{greygher}{RGB}{50, 50, 50} % grey
% ------------------------------------------------
% LENGTH DEFINITIONS
%-------------------------------------------------
%\setlength{\textwidth}{16cm}
%\setlength{\textheight}{24cm}
%\setlength{\headheight}{50.3pt}
%\setlength{\footskip}{45pt}
%\setlength{\hoffset}{-1cm}
%\setlength{\voffset}{-3cm}
%\setlength{\unitlength}{1cm}
\setlength{\parindent}{0pt}
\newsavebox{\ximagebox}
\newlength{\ximageheight}
\newsavebox{\xglyphbox}
\newlength{\xglyphheight}
\newcommand{\xbox}[1]%
{\savebox{\ximagebox}{#1}%
\settoheight{\ximageheight}{\usebox{\ximagebox}}%
\savebox{\xglyphbox}{\char32}%
\settoheight{\xglyphheight}{\usebox{\xglyphbox}}%
\raisebox{\ximageheight}[0pt][0pt]{\raisebox{-\xglyphheight}[0pt][0pt]{%
\makebox[0pt][l]{\usebox{\xglyphbox}}}}%
\usebox{\ximagebox}%
\raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
\newcommand{\seplogo}{\hspace{.45cm}}
\newcommand{\figheight}{.0625\textheight}
\newcommand{\putlogolink}[2]{\href{#1}{\xbox{\includegraphics[height=\figheight]{#2}}}}
% ------------------------------------------------
% new commands
%-------------------------------------------------
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\captionfont}{\it \small}
%\renewcommand{\LettrineFontHook}{\color[gray]{0.5}}
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
\newcommand{\beq}{\begin{eqnarray}}
\newcommand{\eeq}{\end{eqnarray}}
\newcommand{\beqn}{\begin{eqnarray*}}
\newcommand{\eeqn}{\end{eqnarray*}}
\newcommand{\montant}{\rule{0pt}{3ex}}
% ------------------------------------------------
% ABBREVIATION
%-------------------------------------------------
\newcommand{\diva}{\textsf{Diva}\xspace}
\newcommand{\matlab}{\textsf{Matlab}\xspace}
\newcommand{\plplot}{\textsf{PlPlot}}
\newcommand{\tcltk}{\textsf{Tcl/Tk}}
\newcommand{\divaversion}{4.7.1}
\newcommand{\gnuplot}{\textsf{gnuplot\xspace}}
\newcommand{\divawebpage}{http://modb.oce.ulg.ac.be/mediawiki/index.php/DIVA}
\newcommand{\question}{Why do I get this error?}
\newcommand{\answer}{How to solve it?}
% ------------------------------------------------
% JMB newcommands
%-------------------------------------------------
\newcommand{\nablab}{\boldsymbol{\nabla}}
\newcommand{\statmean}[1]{\left\langle #1 \right\rangle}
\newcommand{\mean}[1]{\statmean{#1}}
\newcommand{\true}[1]{{#1}^t}
\newcommand{\analyzed}[1]{{#1}^a}
\newcommand{\observation}{ \mbox{\boldmath $ \protect\mathrm{y} $} }
\newcommand{\forecasted}[1]{{#1}^f}
\newcommand{\Hobs}{\matr{H}}
\newcommand{\errorv}{\vect{\epsilon}}
\newcommand{\errorobs}{\vect{\epsilon}^o}
\newcommand{\sing} {\rho}
\newcommand{\vnorm}[1] { \parallel \! #1 \! \parallel }
\newcommand{\taumax}[1] { \mu_{#1}^{max} }
\newcommand{\vecti}[1] { \mbox{\boldmath $ \protect#1 $} }
\newcommand{\vects}[1] {{\boldsymbol {#1}}}
\newcommand{\vect}[1] {{\vec{#1}}}
\newcommand{\tens}[1] { \mbox{\boldmath $ \protect\mathsf{#1} $} }
\newcommand{\matr}[1]{\mbox{$\mathbf{#1} $} }
\newcommand{\trcon}[1]{{#1}^\star}
\newcommand{\adj}[1]{\trcon{#1}}
\newcommand{\transp}[1]{{#1}^{\protect\mathrm{T}}}
\newcommand{\conj}[1]{\bar{#1}}
\newcommand{\inv}[1]{{#1}^{ \mbox{\small{-}} 1}}
\newcommand{\psinv}[1]{{#1}^{- \! \! \! 1}}
\newcommand{\noise}{\epsilon}
\newcommand{\signal}{\sigma}
\newcommand{\snr}{\lambda}
\newcommand{\ddiff}{\mbox{d}}
\newcommand{\diag}{\mbox{diag}}
\renewcommand{\vect}[1] { \mbox{\boldmath $ #1 $} }
\renewcommand{\adj}[1]{{#1}^\mathsf{T}}
\renewcommand{\transp}[1]{{#1}^\mathsf{T}}
\renewcommand{\matr}[1] { \mbox{\boldmath $ \protect\mathsf{#1} $} }
\renewcommand{\vect}[1] { \mbox{\boldmath $ \protect\mathsf{#1} $} }
\newcommand{\posx}{\mathsf{r}}
\newcommand{\trace}[1]{\mathrm{trace}\left( #1 \right)}
\newcommand{\LaTeXPiX}[3]{
\begin{sidewaysfigure*}[ht]
\begin{center}
{\small{
\input{#1.eepic}
\caption{#2
\label{#3}}
}}
\end{center}
\end{sidewaysfigure*}
}
% ----------end of JMB newcommands
% ------------------------------------
% new kind of floating
%-------------------------------------
\floatstyle{boxed}
\newfloat{exfile}{htbp}{exf}[chapter]
\floatname{exfile}{Example file}
% ------------------------------------------------
\newtheorem{tips}{Tips}[chapter]
\newcommand{\btips}{%\rule{1ex}{1ex}\,\,
\begin{tips}}
\newcommand{\etips}{\,\,\rule{1ex}{1ex}%
\end{tips}}
% level of diffuculty for the user
\newcommand{\beginer}{$\star$}
\newcommand{\intermediate}{$\star\star$}
\newcommand{\expert}{$\star\star\star$}
\newcommand{\directory}[1]{\texttt{\color{Green}{#1}}}
\newcommand{\file}[1]{\texttt{\color{MidnightBlue}{#1}}}
\newcommand{\command}[1]{\texttt{\color{OrangeRed}{#1}}}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\newtcbox{\warn}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\vphantom{dlg}},
colframe=OrangeRed,coltext=Orange,colback=white,
overlay={\begin{tcbclipinterior}\fill[Orange] (frame.south west)
rectangle node[text=white,font=\sffamily\tiny,rotate=0] {\faWarning} ([xshift=4mm]frame.north west);\end{tcbclipinterior}}}
\newtcbox{\note}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\vphantom{dlg}},
colframe=NavyBlue,coltext=NavyBlue,colback=white,
overlay={\begin{tcbclipinterior}\fill[NavyBlue] (frame.south west)
rectangle node[text=white,font=\sffamily\scriptsize,rotate=0] {\faInfoCircle} ([xshift=4mm]frame.north west);\end{tcbclipinterior}}}
\newcommand{\warning}{\warn{Warning}~}
\newcommand{\info}{\note{Note}~}
\newcommand{\example}{\note{Example}~}
\newcommand{\examples}{\note{Examples}~}
% ------------------------------------------------
% hyperref setup
%-------------------------------------------------
\hypersetup{bookmarksopen=true,
bookmarksnumbered=true,
pdffitwindow=false,
pdfstartview=FitP,
pdftoolbar=true,
pdfmenubar=true,
pdfwindowui=true,
pdfauthor={C.~Troupin, A.~Barth, S~ Watelet, M.~Ouberdous, J.-M.~Beckers},
pdftitle={Diva User Guide},
pdfsubject={Geostatistics analysis tool},
bookmarksopenlevel=2,
colorlinks=true,%
breaklinks=true,%
colorlinks=true,%
linkcolor=DimGray,anchorcolor=blue,%
citecolor=DimGray,filecolor=blue,%
menucolor=black,%
urlcolor=DimGray}
% ------------------------------------------------
% page style
%-------------------------------------------------
\pagestyle{fancy} %Forces the page to use the fancy template
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \MakeUppercase{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
%The text used in the header is determined by the arguments to the \markboth
\fancyhf{} %Clears all header and footer fields, in preparation.
\fancyhead[L]{\parbox{8cm}{\flushleft\textcolor{gris}{\leftmark}\\
\rule{\textwidth}{0pt}}}
\fancyhead[C]{\parbox{\textwidth}{\rule{0pt}{2.8ex}\\
\textcolor{gris}{\rule{\textwidth}{1pt}}}}
\fancyhead[R]{\parbox{6cm}{\flushright\textcolor{gris}{\rightmark}\\
\rule{\textwidth}{0pt}}}
\renewcommand{\headrulewidth}{0pt} %Underlines the header. (Set to 0pt if not required).
\renewcommand{\footrulewidth}{0pt} %Underlines the footer. (Set to 0pt if not required)..
%\fancyfoot[C]{\large\bfseries \textcolor{gris}{--\thepage--} }
\fancyfoot[C]{\large\thepage}
% ------------------------------------------------
% chapter style
%-------------------------------------------------
\newcommand*\chapterlabel{}
\titleformat{\chapter}
{\gdef\chapterlabel{}
\normalfont\sffamily\Huge\bfseries\scshape}
{\gdef\chapterlabel{\thechapter\ }}{0pt}
{\begin{tikzpicture}[remember picture,overlay]
\node[yshift=-2.5cm] at (current page.north west) %old value : -2.5cm
{\begin{tikzpicture}[remember picture, overlay]
\draw[fill=lightgray] (0,0) rectangle
(1.05\paperwidth,2.5cm); %old value : 1.00
\node[anchor=east,xshift=1.00\paperwidth,rectangle, %old value : 0.95
rounded corners=20pt,inner sep=11pt,
fill=black]
{\color{white}\chapterlabel#1};
\end{tikzpicture}
};
\end{tikzpicture}
}
\titlespacing*{\chapter}{0pt}{50pt}{-60pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\parskip 0.25cm
\urlstyle{tt}
% ------------------------------------------------
%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}
%-----------------------------------------------------
% For the title page
%-----------------------------------------------------
\newcommand{\HRule}[1]{\hfill \rule{0.2\linewidth}{#1}} % Horizontal rule
\definecolor{grey}{rgb}{0.9,0.9,0.9}
\makeatletter % Title
\def\printtitle{%
{\centering \@title\par}}
\makeatother
\makeatletter % Author
\def\printauthor{%
{\centering \large \@author}}
\makeatother
\title{\diva User Guide}
\author{C.~Troupin, S.~Watelet, M.~Ouberdous, D.~Sirjacobs, A.~Alvera-Azcárate, A.~Barth, M.-E.~Toussaint \& J.-M.~Beckers}
\date{}
\makeindex