[707] | 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 | |
---|
[817] | 8 | % makeindex NEMO_book <== to regenerate the index |
---|
| 9 | % bibtex NEMO_book <== to generate the bibliography |
---|
| 10 | |
---|
[707] | 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 | |
---|
[817] | 21 | %hyperref ===>>> don't work..... |
---|
| 22 | %\usepackage[a4paper=true,ps2pdf=true,pagebackref=true,breaklinks=true]{hyperref} |
---|
[2070] | 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} |
---|
[817] | 36 | |
---|
[707] | 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} |
---|
[2070] | 75 | \usepackage[table]{xcolor} |
---|
[707] | 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}% |
---|
[2070] | 100 | \rlap{\hbox to 1cm{\hss\mbox{\textcolor{white} {#1}}\hss}}% |
---|
[707] | 101 | \vrule height 0pt width 1cm depth 0pt} |
---|
| 102 | \def\GrosCarreAvecTroisChiffre#1{% |
---|
| 103 | \rlap{\vrule height 0.8cm width 1.6cm depth 0.2cm}% |
---|
[2070] | 104 | \rlap{\hbox to 1.5cm{\hss\mbox{\textcolor{white} {#1}}\hss}}% |
---|
[707] | 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: |
---|
[2070] | 129 | \newcommand{\vect} [1] { \rm{\textbf{#1}} } % vector style: |
---|
| 130 | % non-italic bold |
---|
| 131 | %% agn use maths shortcuts |
---|
| 132 | \usepackage{math_abbrev} |
---|
[707] | 133 | |
---|
[2078] | 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 | |
---|
[707] | 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) |
---|
[817] | 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 |
---|
[707] | 155 | % % text that span line breaks |
---|
| 156 | |
---|
| 157 | %--------------------------------------------namlist--------------------------------------------------------- |
---|
[2070] | 158 | \newcommand{\namdisplay} [1] {\begin{alltt} {{\tiny \verbatiminput{./TexFiles/Namelist/#1}}} \end{alltt} \vspace{-10pt} } |
---|
| 159 | %--------------------------------------------------------------------------------------------------------- |
---|
[707] | 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." |
---|
[1680] | 177 | \providecommand{\bibfont}{\small} |
---|
[707] | 178 | %-------------------------------------------------------------------------------------------------------------- |
---|
| 179 | |
---|
| 180 | % ================================================================ |
---|
| 181 | % FRONT PAGE |
---|
| 182 | % ================================================================ |
---|
[817] | 183 | |
---|
| 184 | \title{ |
---|
[2070] | 185 | \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_CNRS} |
---|
[994] | 186 | \quad |
---|
[2070] | 187 | \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_MERCATOR} |
---|
[994] | 188 | \quad |
---|
[2070] | 189 | \includegraphics[width=0.1\textwidth]{./TexFiles/Figures/logo_UKMO} |
---|
[994] | 190 | \quad |
---|
[2070] | 191 | \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_NERC} \\ |
---|
[817] | 192 | \vspace{3.0cm} |
---|
[2070] | 193 | \includegraphics[width=0.3\textwidth]{./TexFiles/Figures/NEMO_logo_Black} \\ |
---|
[994] | 194 | \vspace{1.0cm} |
---|
[707] | 195 | \rule{345pt}{1.5pt} \\ |
---|
| 196 | \vspace{0.45cm} |
---|
| 197 | {\Huge NEMO ocean engine} |
---|
| 198 | \rule{345pt}{1.5pt} \\ |
---|
[994] | 199 | %{\small NEMO v2.3} \\ |
---|
[1320] | 200 | {\small -- version 3.1 --} } |
---|
[994] | 201 | %{ -- Draft --} } |
---|
| 202 | %\date{\today} |
---|
| 203 | \date{ |
---|
| 204 | May 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 | } |
---|
[707] | 209 | |
---|
[817] | 210 | |
---|
[2070] | 211 | %%\includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_NERC} \\ |
---|
[817] | 212 | |
---|
[707] | 213 | %% \hbox{\mbox{% |
---|
[817] | 214 | %% \hspace{4pt}% |
---|
[2070] | 215 | %% \fbox{\includegraphics[width=3em]{./TexFiles/Figures/logo_CNRS}}% |
---|
[707] | 216 | %% \hspace{4pt} |
---|
| 217 | %% } }% |
---|
| 218 | |
---|
[994] | 219 | \author{ \Large Gurvan Madec \\ |
---|
| 220 | \texttt{\small gurvan.madec@locean-ipsl.umpc.fr} \\ |
---|
[707] | 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 | |
---|
[2070] | 232 | %\includeonly{} |
---|
[998] | 233 | %\includeonly{./TexFiles/Chapters/Chap_MISC} |
---|
[2070] | 234 | %\includeonly{./TexFiles/Chapters/Annex_ISO} |
---|
[998] | 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} |
---|
[707] | 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 | |
---|
[998] | 258 | \include{./TexFiles/Chapters/Abstracts_Foreword} |
---|
[707] | 259 | |
---|
| 260 | % ================================================================ |
---|
| 261 | % INTRODUCTION |
---|
| 262 | % ================================================================ |
---|
| 263 | |
---|
[998] | 264 | \include{./TexFiles/Chapters/Introduction} |
---|
[707] | 265 | |
---|
| 266 | % ================================================================ |
---|
| 267 | % CHAPTERS |
---|
| 268 | % ================================================================ |
---|
| 269 | |
---|
[998] | 270 | \include{./TexFiles/Chapters/Chap_Model_Basics} |
---|
[707] | 271 | |
---|
[998] | 272 | %\include{./TexFiles/Chapters/Chap_Model_Basics_zstar} % attent to describe z*-s* |
---|
[707] | 273 | |
---|
[998] | 274 | \include{./TexFiles/Chapters/Chap_DOM} |
---|
[707] | 275 | |
---|
[998] | 276 | \include{./TexFiles/Chapters/Chap_TRA} |
---|
[707] | 277 | |
---|
[998] | 278 | \include{./TexFiles/Chapters/Chap_DYN} |
---|
[707] | 279 | |
---|
[998] | 280 | \include{./TexFiles/Chapters/Chap_SBC} |
---|
[707] | 281 | |
---|
[998] | 282 | \include{./TexFiles/Chapters/Chap_LBC} |
---|
[707] | 283 | |
---|
[998] | 284 | \include{./TexFiles/Chapters/Chap_LDF} |
---|
[707] | 285 | |
---|
[998] | 286 | \include{./TexFiles/Chapters/Chap_ZDF} |
---|
[707] | 287 | |
---|
[998] | 288 | \include{./TexFiles/Chapters/Chap_MISC} |
---|
[707] | 289 | |
---|
| 290 | % ================================================================ |
---|
| 291 | % APPENDIX |
---|
| 292 | % ================================================================ |
---|
| 293 | |
---|
[817] | 294 | \appendix |
---|
[707] | 295 | |
---|
[998] | 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} |
---|
[2070] | 302 | \include{./TexFiles/Chapters/Annex_ISO} |
---|
[707] | 303 | |
---|
| 304 | % ================================================================ |
---|
| 305 | % INDEX |
---|
| 306 | % ================================================================ |
---|
| 307 | |
---|
| 308 | \addcontentsline{toc}{chapter}{Index} |
---|
| 309 | \printindex |
---|
| 310 | |
---|
| 311 | % ================================================================ |
---|
| 312 | % BIBLIOGRAPHY |
---|
| 313 | % ================================================================ |
---|
| 314 | |
---|
[1680] | 315 | %%\bibliographystyle{plainat} |
---|
[998] | 316 | \bibliographystyle{./TexFiles/ametsoc} % AMS biblio style (JPO) |
---|
| 317 | \bibliography{./TexFiles/Biblio/Biblio} |
---|
[707] | 318 | |
---|
| 319 | % ================================================================ |
---|
[781] | 320 | \end{document} |
---|
[2070] | 321 | |
---|
| 322 | %%% Local Variables: |
---|
| 323 | %%% TeX-PDF-mode: t |
---|
| 324 | %%% End: |
---|