\documentclass[DIV16,BCOR1cm,11pt,a4paper,fleqn,twoside]{scrreprt} % for pdf output %\documentclass[DIV16,BCOR1cm,11pt,a4paper,fleqn]{report} % for pdf output \usepackage{graphics} \newcommand{\CDI}{\bfseries\sffamily CDI} % 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}} \fancyhead[LO,RE]{\slshape \leftmark} %\fancyhead[LE,RO]{\slshape \rightmark} \fancyfoot[LE,RO]{\Large\thepage} \fancypagestyle{plain}{% \fancyhead{} % get rid of headers \renewcommand{\headrulewidth}{0pt} } \usepackage{exscale} \usepackage{array,colortbl} % color table \usepackage{listings} %\lstloadlanguages{[ANSI]C,[77]Fortran} \usepackage{color} \definecolor{zebg}{rgb}{1,1,.8} %elfenbeinfarbig %\usepackage{ae} % fuer die "almost european" computer modern fonts %\usepackage{url} % Standard-Paket fuer WWW-Adressen %\typearea{10} % Einen sinnvollen Satzspiegel aktivieren %\documentclass[DIV16,BCOR1cm,12pt,a4paper,fleqn]{scrreprt} % for pdf output %\documentclass[DIV16,BCOR1cm,11pt,a4paper,twoside]{scrreprt} % for ps output %\documentclass[a4paper,DIV14,BCOR1cm]{scrartcl} %Usage: %latex2html -local_icons -split 4 -toc_depth 3 -white cdi.tex %dvips -o cdi.ps cdi.dvi %dvips ps+pdf %dvipdf %pdflatex % To allow automatic selection of the right graphics type ... \newif\ifpdf \ifx\pdfoutput\undefined \pdffalse % LaTeX \else \pdfoutput=1 % PDFLaTeX \pdftrue \fi \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={CDI C Manual}, pdfcreator={pdflatex + hyperref}, pdfstartview=FitV, % pdfpagemode=FullScreen, a4paper, bookmarks=true, linkcolor=blue, citecolor=blue, urlcolor=blue, colorlinks=true} \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}{Function index} \newcommand{\deflabel}[1]{\bf #1\hfill} \newenvironment{deflist}[1] {\begin{list}{} {\settowidth{\labelwidth}{\bf #1} \setlength{\parsep}{0mm} \setlength{\itemsep}{1mm} \setlength{\leftmargin}{\labelwidth} \addtolength{\leftmargin}{\labelsep} \renewcommand{\makelabel}{\deflabel}}} {\end{list}} \begin{document} \begin{titlepage} \vspace*{50mm} {\Huge{\CDI} \ \bf C Manual} \setlength{\unitlength}{1cm} \begin{picture}(16,0.4) \linethickness{1.5mm} \put(0,0.1){\line(1,0){15.85}} \end{picture} \begin{flushright} \large\bf{Climate Data Interface \\ Version 1.4.1 \\ December 2009} \end{flushright} \vfill \Large\bf{Uwe Schulzweida} \Large\bf{Max-Planck-Institute for Meteorology} \begin{picture}(16,1) \linethickness{1.0mm} \put(0,0.7){\line(1,0){15.85}} \end{picture} \end{titlepage} \tableofcontents \chapter{Introduction} \input{intro} \chapter{File Formats} \input{formats} \chapter{Use of the CDI Library} \input{usage} \input{c_link} \chapter{CDI modules} \input{modules} %\newpage \section{Dataset functions} \input{dataset} \input{c_stream} \newpage \section{Variable list functions} \input{vlist} \input{c_vlist} \newpage \section{Variable functions} \input{variable} \input{c_vlist_var} \newpage \section{Grid functions} \input{grid} \input{c_grid} \newpage \section{Z-axis functions} \input{zaxis} \input{c_zaxis} \newpage \section{T-axis functions} \input{taxis} \input{c_taxis} %\chapter{Institute} %\chapter{Model} \input{bib} \appendix \chapter{Quick Reference} %\chapter{Quick Reference\markboth{Quick Reference}{}} %\addcontentsline{toc}{chapter}{Quick Reference} This appendix provide a brief listing of the C language bindings of the CDI library routines: \input{c_ref} \input{c_examples} \clearpage \ifpdf \phantomsection \fi \addcontentsline{toc}{chapter}{\indexname} \printindex \end{document}