cdo.tex 5.72 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
\documentclass[DIV16,BCOR1cm,10pt,a4paper,fleqn,twoside]{scrreprt}         % for pdf output
%\documentclass[DIV16,BCOR1cm,10pt,a4paper,fleqn]{scrreprt}         % for pdf output
%\documentclass[DIV16,BCOR1cm,11pt,a4paper,fleqn]{report}         % for pdf output

Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
6
7
8
9
10
11
% To allow automatic selection of the right graphics type ...
% preset \pdfoutput for older latex installation, it is allways definted for
% news ones
\ifx\pdfoutput\undefined
\gdef\pdfoutput{0}
\fi

12
\newif\ifpdfx
Uwe Schulzweida's avatar
Uwe Schulzweida committed
13
14
\ifnum\pdfoutput=0
% latex is called for dvi output
15
   \pdfxfalse
Uwe Schulzweida's avatar
Uwe Schulzweida committed
16
17
18
   \usepackage{graphicx}
\else
% pdflatex is called for pdf output
19
   \pdfxtrue
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
21
22
   \usepackage[pdftex]{graphicx}
   \usepackage[pdftex]{hyperref}
\fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
23

Uwe Schulzweida's avatar
Uwe Schulzweida committed
24
25
\usepackage{textcomp}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
27
28
29
30
31
32
33
34
35
36
37
38

\usepackage{transparent}
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
{\transparent{1.0} \includegraphics[width=16cm,height=\paperheight,%
keepaspectratio]{cdo_libdep.pdf}}%
\vfill
}}}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
39
40
%\newcommand{\CDO}{{\bfseries\sffamily CDO\ }}
\newcommand{\CDO}{{\bfseries\sffamily CDO}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
41
42
\newcommand{\cdologo}{\includegraphics{logo/cdo_logo}}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
43
44
\graphicspath{{figures/}}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
% To define headers and footers
\usepackage{fancyhdr}
\pagestyle{fancy}

% Headers and footers personalization using the `fancyhdr' package
\fancyhf{} % Clear all fields

\renewcommand{\headrulewidth}{0.2mm}
\renewcommand{\footrulewidth}{0.2mm}

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]{\markleft{#1}}

\fancyhead[LO,RE]{\slshape \leftmark}
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyfoot[LE,RO]{\Large\thepage}
64
%\fancyfoot[LO,RE]{\raisebox{-2.8mm}{\scalebox{0.17}{\cdologo}}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
65
66
67
68
69
\fancypagestyle{plain}{%
  \fancyhead{} % get rid of headers
  \renewcommand{\headrulewidth}{0pt}
}

70
71
72
73
%\setlength{\footnotesep}{0cm}
%\setlength{\footskip}{-2cm}
%\renewcommand{\footnoterule}{\rule{0cm}{0cm}}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
74
75
\usepackage{multirow}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
76
77
78
\usepackage[T1]{fontenc}
\usepackage[lighttt]{lmodern}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
79
80
81
82
\usepackage{exscale}
\usepackage{array,colortbl}    % color table

\usepackage{listings}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
83
\usepackage{longtable}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
84
\usepackage{color}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
85
86
87
\definecolor{pcolor1}{rgb}{0.992, 0.980, 0.875}  % rgb: 253/250/223
\definecolor{pcolor2}{rgb}{1.000, 0.925, 0.700}  % rgb: 255/236/278
\definecolor{pcolor3}{rgb}{0.968, 0.756, 0.623}  % rgb: 247/193/159
Uwe Schulzweida's avatar
Uwe Schulzweida committed
88
89
90
91
92
93
94
95

%\usepackage{ae}               % fuer die "almost european" computer modern fonts
%\usepackage{url}              % Standard-Paket fuer WWW-Adressen

%\typearea{10}                 % Einen sinnvollen Satzspiegel aktivieren


%Usage:
Uwe Schulzweida's avatar
Uwe Schulzweida committed
96
97
98
99
100
101
102
103
104
105
106
107
%pdflatex cdo.tex
%pdflatex cdo.tex
%cat > cdo.ist << 'EOF'
%delim_0        "{\\idxdotfill} "
%headings_flag  1
%heading_prefix "{\\centerline {\\Large \\bf "
%heading_suffix "}}"
%EOF
%makeindex -s cdo.ist cdo.idx
%pdflatex cdo
%thumbpdf cdo
%pdflatex cdo
Uwe Schulzweida's avatar
Uwe Schulzweida committed
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


\usepackage{thumbpdf}

%\usepackage{html}

\usepackage{makeidx}

%\ifpdf
%\usepackage[a4paper, colorlinks=true, pdfstartview=FitV, bookmarks=true, linkcolor=blue,
%            citecolor=blue, urlcolor=blue, latex2html=true]{hyperref}
%\fi

\usepackage{hyperref}
\hypersetup{pdftoolbar=true,
            pdfmenubar=true,
            pdfwindowui=true,   
%            pdffitwindow=true,
            pdfauthor={Uwe Schulzweida},
            pdftitle={CDO Climate Data Operators},
            pdfcreator={pdflatex + hyperref},
            pdfstartview=FitV,
%            pdfpagemode=FullScreen,
            a4paper,
            bookmarks=true,
            linkcolor=blue,
            citecolor=blue,
            urlcolor=blue,
            colorlinks=true}

\setlength{\parindent}{0em}
\setlength{\parskip}{1.5ex plus0.5ex minus0.5ex}
\extrarowheight1pt

\makeindex
%\newcommand{\ii}[1]{\textit{#1}}  \newcommand{\nn}[1]{#1n}
%\renewcommand{\dotfill}{\leaders\hbox to 5p1{\hss.\hss}\hfill}
%\newcommand{\idxdotfill}{5p1{\hss.\hss}\hfill}
\newcommand{\idxdotfill}{\ \dotfill \ }
%\def\idxdotfill{\leaders\hbox to.6em{\hss .\hss}\hskip 0pt plus 1fill}
%\MakeShortVerb{\@}

\renewcommand{\indexname}{Operator index}

\newenvironment{defalist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1\ \ }
\setlength{\itemsep}{0mm}
\setlength{\itemindent}{0mm}
%\setlength{\listparindent}{25mm}
\setlength{\leftmargin}{\labelwidth}
%\setlength{\leftmargin}{25mm}
\setlength{\labelsep}{2mm}
\addtolength{\leftmargin}{\labelsep}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
%\addtolength{\leftmargin}{8mm}
}}
{\end{list}}

\newenvironment{defalist2}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1\ \ }
\setlength{\itemsep}{0mm}
\setlength{\itemindent}{0mm}
%\setlength{\listparindent}{25mm}
\setlength{\leftmargin}{\labelwidth}
%\setlength{\leftmargin}{25mm}
\setlength{\labelsep}{2mm}
\addtolength{\leftmargin}{\labelsep}
\addtolength{\leftmargin}{8mm}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
177
178
179
180
181
}}
{\end{list}}

\newcommand{\miniwidth}{\textwidth}

182
183
\setcounter{secnumdepth}{3}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
184
185
\begin{document}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
186
% \AddToShipoutPicture*{\BackgroundPic}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
187
188

\begin{titlepage}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
189
190
\vspace*{50mm}
%\vspace*{25mm}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
191
{\Huge{\CDO}} \ {\Huge\bf User's Guide}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
192
193
194
195
196

\setlength{\unitlength}{1cm}
\begin{picture}(16,0.4)
\linethickness{1.5mm}
%\put(0,0.1){\line(1,0){15.85}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
197
\put(0,0.1){\line(1,0){16.3}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
198
199
200
\end{picture}

\begin{flushright}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
201
\large\bf{Climate Data Operators \\ Version 1.8.0 \\ October 2016}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
202
203
204
205
\end{flushright}

\vfill

Uwe Schulzweida's avatar
Uwe Schulzweida committed
206
207
\Large{\bf Uwe Schulzweida -- \sl MPI for Meteorology}
%\Large{\bf Uwe Schulzweida, Luis Kornblueh -- \sl MPI for Meteorology}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
208

Uwe Schulzweida's avatar
Uwe Schulzweida committed
209
%\Large{\bf Ralf Quast -- \sl Brockmann Consult}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
210
211
212
213

\begin{picture}(16,1)
\linethickness{1.0mm}
%\put(0,0.7){\line(1,0){15.85}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
214
\put(0,0.7){\line(1,0){16.3}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
215
216
\end{picture}
\end{titlepage}
217

Uwe Schulzweida's avatar
Uwe Schulzweida committed
218
\tableofcontents
219

Uwe Schulzweida's avatar
Uwe Schulzweida committed
220
\input{cdo_int}
221

Uwe Schulzweida's avatar
Uwe Schulzweida committed
222
\input{cdo_con}
223

Uwe Schulzweida's avatar
Uwe Schulzweida committed
224
\input{cdo_adv}
225

Uwe Schulzweida's avatar
Uwe Schulzweida committed
226
\input{cdo_ref}
227

Uwe Schulzweida's avatar
Uwe Schulzweida committed
228
\input{bib}
229

Uwe Schulzweida's avatar
Uwe Schulzweida committed
230
\input{appendix}
231

Uwe Schulzweida's avatar
Uwe Schulzweida committed
232
\clearpage
233
\ifpdfx
Uwe Schulzweida's avatar
Uwe Schulzweida committed
234
235
236
\phantomsection
\addcontentsline{toc}{chapter}{\indexname}
\printindex
Uwe Schulzweida's avatar
Uwe Schulzweida committed
237
238
239
240
\else
\input{catalog}
\input{alphabetic_list}
\fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
241
\end{document}