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_r1924_nocs_latphys/DOC – NEMO

source: branches/DEV_r1924_nocs_latphys/DOC/NEMO_book.tex @ 2078

Last change on this file since 2078 was 2078, checked in by sga, 14 years ago

NEMO branch DEV_r1924_nocs_latphys. Documentation updates. George Nurser

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