New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
NEMO_book.tex in branches/DEV_r1826_DOC/DOC – NEMO

source: branches/DEV_r1826_DOC/DOC/NEMO_book.tex @ 1859

Last change on this file since 1859 was 1842, checked in by gm, 14 years ago

DEV_r1826_DOC : add a command to define an input file index, see ticket: #658

  • Property svn:executable set to *
File size: 10.5 KB
Line 
1%description: Book template
2
3% template of document for LaTeX
4% (C) Xavier Perseguers 2002 - xavier.perseguers@epfl.ch
5
6\documentclass[a4paper,12pt]{book}
7
8%  makeindex NEMO_book     <== to regenerate the index
9%  bibtex         NEMO_book   <== to generate  the bibliography
10
11% ================================================================
12% HEADERS DEFINITION
13% ================================================================
14
15\usepackage[french]{babel}
16\usepackage{fancyhdr}
17
18\usepackage{alltt}      %%  alltt for namelist
19\usepackage{verbatim}   %%  alltt for namelist
20
21%hyperref  ===>>>  don't work.....
22%\usepackage[a4paper=true,ps2pdf=true,pagebackref=true,breaklinks=true]{hyperref}
23
24%\usepackage{amssymb}
25\pagestyle{fancy}
26% with this we ensure that the chapter and section
27% headings are in lowercase.
28\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
29\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
30\fancyhf{}             % delete current setting for header and footer
31\fancyhead[LE,RO]{\bfseries\thepage}
32\fancyhead[LO]{\bfseries\hspace{-0em}\rightmark}
33\fancyhead[RE]{\bfseries\leftmark}
34\renewcommand{\headrulewidth}{0.5pt}
35\renewcommand{\footrulewidth}{0pt}
36\addtolength{\headheight}{2.6pt}   % make space for the rule
37%\addtolength{\headheight}{1.6pt}   % make space for the rule
38\fancypagestyle{plain}{
39  \fancyhead{}         % get rid of headers on plain pages
40  \renewcommand{\headrulewidth}{0pt}  % and the line
41}
42
43% Leave blank pages completely empty, w/o header
44\makeatletter
45\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
46  \hbox{}
47  \vspace*{\fill}
48  \vspace{\fill}
49  \thispagestyle{empty}
50  \newpage
51  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
52\makeatother
53
54\usepackage{makeidx}
55
56\usepackage{minitoc}          %in french : \usepackage[french]{minitoc}
57
58%\usepackage{mtcoff}          % invalidate the use of minitocs
59\usepackage[latin1]{inputenc}
60\usepackage{graphics}            % allows insertion of pictures
61\usepackage{times}               % use vector fonts instead of bitmap
62\usepackage{fancybox}
63\usepackage{color}
64\usepackage{colortbl}
65
66%%%% add by Word2Tex
67%\documentclass{amsart}
68\usepackage{latexsym}
69\usepackage{amssymb}
70\usepackage{amsmath}
71\usepackage{graphicx}
72\allowdisplaybreaks[1]           % allow page breaks in the middle of equations
73%%%%
74
75%%%%
76%\usepackage{mathtime}      % font for illustrator to work (belleek fonts )
77%%%%
78
79%\usepackage{showidx}            % show the index entry
80
81
82
83%%%% define the style of title for chapter  %%%
84\usepackage{pstricks}
85\makeatletter
86\def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax}
87\def\LignesVerticales{%
88  \let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}
89\def\GrosCarreAvecUnChiffre#1{%
90  \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}%
91  \rlap{\hbox to 1cm{\hss\mbox{\white #1}\hss}}%
92  \vrule height 0pt width 1cm depth 0pt}
93\def\GrosCarreAvecTroisChiffre#1{%
94  \rlap{\vrule height 0.8cm width 1.6cm depth 0.2cm}%
95  \rlap{\hbox to 1.5cm{\hss\mbox{\white #1}\hss}}%
96  \vrule height 0pt width 1cm depth 0pt}
97
98\def\@makechapterhead#1{\hbox{%
99    \huge 
100    \LignesVerticales
101    \hspace{-0.5cm}%
102    \GrosCarreAvecUnChiffre{\thechapter}
103    \hspace{0.2cm}\hbox{#1}%
104%    \GrosCarreAvecTroisChiffre{\thechapter}
105%    \hspace{1cm}\hbox{#1}%
106%}\par\vskip 2cm}
107}\par\vskip 1cm}
108\def\@makeschapterhead#1{\hbox{%
109    \huge 
110    \LignesVerticales
111    %\hspace{0.5cm}%
112    \hbox{#1}%
113}\par\vskip 2cm}
114
115%\def\thechapter{\Roman{chapter}}      % chapter number to be Roman
116
117%%%% end style chapter %%%
118
119%%% eqution shortcut:
120\newcommand{\vect} [1] { \rm{\textbf{#1}} }    % vector style: non-italic bold
121
122%%% essai commande
123\newcommand{\nl} [1] {\texttt{\small {\textcolor{blue}{#1}} } } 
124
125%essai commande 
126\newcommand{\mdl} [1] {\textit{#1.F90}\index{Modules!#1}}         %module (mdl)
127\newcommand{\rou} [1] {\textit{#1}\index{Routines!#1}}            %module (routine)
128\newcommand{\hf} [1] {\textit{#1.h90}\index{h90 file!#1}}            %module (h90 files)
129\newcommand{\np} [1] {\textit{#1}\index{Namelist parameters!#1}}     %namelist parameter (nampar)
130\newcommand{\jp} [1] {\textit{#1}\index{Model parameters!#1}}        %model parameter (jp)
131\newcommand{\pp} [1] {\textit{#1}\index{Model parameters!#1}}        %namelist parameter (pp)
132\newcommand{\ifile} [1] {\textit{#1.nc}\index{Input NetCDF files!#1.nc}}   %input NetCDF files (.nc)
133\newcommand{\key} [1] {\textbf{key\_#1}\index{CPP keys!key\_#1}}  %key_cpp (key)
134\newcommand{\NEMO} {\textit{NEMO }}                %NEMO (nemo)
135\newcommand{\amtcomment}[1]{#1}     % command to allow "commented out" portions of
136\newcommand{\gmcomment}[1]{}     % command to allow "commented out" portions of
137%                                               % text that span line breaks
138\newcommand{\alpbet} {\left(\alpha / \beta \right)}   % alpha/beta  for slp computation
139
140%--------------------------------------------namlist---------------------------------------------------------
141\newcommand{\namdisplay} [1] { 
142   \begin{alltt}  {{\tiny \verbatiminput{./TexFiles/Namelist/#1}}}  \end{alltt} 
143                               \vspace{-10pt}   }
144%--------------------------------------------------------------------------------------------------------------
145
146%Red (NR) or Yellow(WARN)
147%\newcommand{\NR} {\colorbox{red}{#1}}
148%\newcommand{\WARN} {{ \colorbox{yellow}{#1}} }
149
150%---------------------%%%%%  Section number in Margin  %%%%%-----------------------------
151% typeset the number of each section in the left margin, with the start of each instance of
152% sectional heading text aligned with the left hand edge of  the body text.
153\makeatletter 
154\def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}} 
155\makeatother 
156%--------------------------------------------------------------------------------------------------------------
157
158%----------------------------%%%%%   Bilbiography   %%%%%%-------------------------------%
159\usepackage[nottoc, notlof, notlot]{tocbibind}
160\usepackage[square, comma]{natbib}
161\bibpunct{[}{]}{,}{a}{}{;}                           %suppress "," after "et al."
162\providecommand{\bibfont}{\small}
163%--------------------------------------------------------------------------------------------------------------
164
165% ================================================================
166% FRONT PAGE
167% ================================================================
168
169\title{ 
170\psset{unit=1.1in,linewidth=4pt}    %parameters of the units for pstricks
171\rput(-1.4,2){ \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_CNRS.pdf}           }
172\quad
173\rput(-.15,2){ \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_MERCATOR.pdf} }
174\quad
175\rput(.85,2){ \includegraphics[width=0.1\textwidth]{./TexFiles/Figures/logo_UKMO.pdf}            }
176\quad
177\rput(1.85,2){ \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_NERC.pdf}             } \\
178\vspace{0.1cm}
179\includegraphics[width=0.9\textwidth]{./TexFiles/Figures/NEMO_logo_Black.pdf} \\
180\vspace{1.4cm}
181\rule{345pt}{1.5pt} \\
182\vspace{0.45cm}
183 {\Huge NEMO ocean engine} 
184\rule{345pt}{1.5pt} \\ 
185{\small  -- version 3.2 --}   }
186%{ -- Draft --}   }
187%\date{\today}
188\date{
189April 2010  \\
190\textit{\small Note du P\^ole de mod\'{e}lisation de l'Institut Pierre-Simon Laplace No 27 }\\
191\vspace{0.45cm}
192{ ISSN No 1288-1619.}
193}
194
195
196%%\includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_NERC.pdf} \\
197
198%%    \hbox{\mbox{%
199%%       \hspace{4pt}%
200%%         \fbox{\includegraphics[width=3em]{./TexFiles/Figures/logo_CNRS.pdf}}%
201%%        \hspace{4pt}
202%%        }  }%
203
204\author{ 
205\Large Gurvan Madec, and the NEMO team  \\
206 \texttt{\small gurvan.madec@locean-ipsl.umpc.fr} \\
207 \texttt{\small nemo\_st@hermes.locean-ipsl.umpc.fr} \\
208%{\small Laboratoire d'Oc\'{e}anographie  et du Climat: Exp\'{e}rimentation et Approches Num\'{e}riques }
209}
210
211\dominitoc
212\makeindex        %type this first :     makeindex -s NEMO.ist NEMO_book.idx
213
214% ================================================================
215% ================================================================
216%      Include ONLY order
217% ================================================================
218
219%\includeonly{./TexFiles/Chapters/Chap_MISC}
220%\includeonly{./TexFiles/Chapters/Annex_E}
221%\includeonly{./TexFiles/Chapters/Chap_LBC,./TexFiles/Chapters/Chap_MISC}
222%\includeonly{./TexFiles/Chapters/Chap_Model_Basics,./TexFiles/Chapters/Chap_Model_Basics_zstar,./TexFiles/Chapters/Chap_ZDF}
223%\includeonly{./TexFiles/Chapters/Annex_A,./TexFiles/Chapters/Annex_B,./TexFiles/Chapters/Annex_C,./TexFiles/Chapters/Annex_D}
224
225% ================================================================
226% ================================================================
227\begin{document}
228
229\maketitle                 % generate the title
230
231\frontmatter
232
233\tableofcontents              % generate a table of content
234%\listoffigures               % generate a table of content
235%\listoftables             % generate a table of content
236
237\mainmatter
238
239% ================================================================
240% Abstract - Foreword
241% ================================================================
242
243\include{./TexFiles/Chapters/Abstracts_Foreword}
244
245% ================================================================
246% INTRODUCTION
247% ================================================================
248
249\include{./TexFiles/Chapters/Introduction}
250
251% ================================================================
252% CHAPTERS
253% ================================================================
254
255\include{./TexFiles/Chapters/Chap_Model_Basics}
256
257%%
258\include{./TexFiles/Chapters/Chap_Model_Basics_zstar}
259%%
260\include{./TexFiles/Chapters/Chap_DOM}
261
262\include{./TexFiles/Chapters/Chap_TRA}
263
264\include{./TexFiles/Chapters/Chap_DYN}
265
266\include{./TexFiles/Chapters/Chap_SBC}
267
268\include{./TexFiles/Chapters/Chap_LBC}
269
270\include{./TexFiles/Chapters/Chap_LDF}
271
272\include{./TexFiles/Chapters/Chap_ZDF}
273
274\include{./TexFiles/Chapters/Chap_MISC}
275
276% ================================================================
277% APPENDIX
278% ================================================================
279
280\appendix
281
282%\include{./TexFiles/Chapters/Chap_Conservation}
283\include{./TexFiles/Chapters/Annex_A}
284\include{./TexFiles/Chapters/Annex_B}
285\include{./TexFiles/Chapters/Annex_C}
286\include{./TexFiles/Chapters/Annex_D}
287%\include{./TexFiles/Chapters/Annex_E}
288
289% ================================================================
290% INDEX
291% ================================================================
292
293\addcontentsline{toc}{chapter}{Index}
294\printindex
295
296% ================================================================
297% BIBLIOGRAPHY
298% ================================================================
299
300%%\bibliographystyle{plainat}
301\bibliographystyle{./TexFiles/ametsoc}       % AMS biblio style (JPO)
302\bibliography{./TexFiles/Biblio/Biblio}
303
304% ================================================================
305\end{document}
Note: See TracBrowser for help on using the repository browser.