[11148] | 1 | %% Global custom commands: \newcommand{<name>}[<args>][<first argument value>]{<code>} |
---|
| 2 | %% ============================================================================== |
---|
| 3 | |
---|
[11512] | 4 | %% Include references and index for compilation of single subfile |
---|
[11525] | 5 | %\newcommand{\mtoc}{\minitoc} |
---|
[11512] | 6 | \newcommand{\biblio}{ \bibliography{../main/bibliography} } |
---|
[11176] | 7 | \newcommand{\pindex}{\printindex} |
---|
| 8 | |
---|
[11525] | 9 | %% Same slanted font for NEMO and its core engines |
---|
| 10 | \newcommand{\NEMO }{\textsl{NEMO}} |
---|
| 11 | \newcommand{\OPA }{\textsl{OPA}} |
---|
| 12 | \newcommand{\SIcube}{\textsl{SI$^3$}} |
---|
| 13 | \newcommand{\TOP }{\textsl{TOP}} |
---|
| 14 | \newcommand{\PISCES}{\textsl{PISCES}} |
---|
| 15 | \newcommand{\NEMOVAR}{\textsl{NEMOVAR}} |
---|
| 16 | |
---|
| 17 | %% Links for external components |
---|
| 18 | \newcommand{\AGRIF}{\href{http://agrif.imag.fr}{AGRIF}} |
---|
| 19 | \newcommand{\CICE }{\href{http://github.com/CICE-Consortium/CICE}{CICE}} |
---|
| 20 | \newcommand{\OASIS}{\href{http://portal.enes.org/oasis}{OASIS}} |
---|
| 21 | \newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver}{XIOS}} |
---|
| 22 | |
---|
| 23 | %% Fortran in small capitals |
---|
[11512] | 24 | \newcommand{\fortran}{\textsc{Fortran}} |
---|
| 25 | \newcommand{\fninety}{\textsc{Fortran 90}} |
---|
[11148] | 26 | |
---|
| 27 | %% Common aliases |
---|
| 28 | \renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}} |
---|
| 29 | \newcommand{\zstar }{\ensuremath{z^\star}} |
---|
| 30 | \newcommand{\sstar }{\ensuremath{s^\star}} |
---|
| 31 | \newcommand{\ztilde}{\ensuremath{\tilde z}} |
---|
| 32 | \newcommand{\stilde}{\ensuremath{\tilde s}} |
---|
[11512] | 33 | \newcommand{\ie}{\ensuremath{i.e.}} |
---|
| 34 | \newcommand{\eg}{\ensuremath{e.g.}} |
---|
[11148] | 35 | |
---|
| 36 | %% Inline maths |
---|
| 37 | \newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}} |
---|
| 38 | \newcommand{\rdt}{\Delta t} |
---|
| 39 | |
---|
[11512] | 40 | %% Gurvan's comments |
---|
[11148] | 41 | \newcommand{\gmcomment}[1]{} |
---|
| 42 | |
---|
| 43 | %% Maths |
---|
| 44 | \newcommand{\lt}{\left} |
---|
| 45 | \newcommand{\rt}{\right} |
---|
[11512] | 46 | \newcommand{\vect}[1]{\ensuremath{ \mathbf{#1} }} |
---|
[11148] | 47 | \newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} |
---|
| 48 | |
---|
[11512] | 49 | %% Convert chapter/section headings to lowercase |
---|
| 50 | \renewcommand{\chaptermark}[1]{\markboth{#1}{}} |
---|
| 51 | \renewcommand{\sectionmark}[1]{\markright{#1}{}} |
---|
| 52 | |
---|
| 53 | %% Retrieve month name |
---|
| 54 | \renewcommand{\today}{ |
---|
| 55 | \ifcase \month\or January\or February\or March\or |
---|
| 56 | April\or May\or June\or |
---|
| 57 | July\or August\or September\or |
---|
| 58 | October\or November\or December |
---|
| 59 | \fi, \number \year |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | %% Macro for link to orcid profile |
---|
| 63 | \newcommand{\orcid}[1]{ \href{http://orcid.org/#1}{\textcolor{orcidcolor} \aiOrcidSquare} } |
---|
| 64 | |
---|
[11187] | 65 | %% Workaround for issue with \listoffigures |
---|
[11512] | 66 | \DeclareRobustCommand{\triad}[6][]{\ensuremath{ {}_{#2}^{#3} { \mathbb{#4}_{#1} }_{#5}^{\,#6} }} |
---|
[11525] | 67 | |
---|
| 68 | \newcommand{\chaptertoc}[1][Table of contents]{% |
---|
| 69 | \thispagestyle{empty} |
---|
| 70 | \etocsettocstyle{\addsec*{#1}}{}% |
---|
| 71 | \localtableofcontents% |
---|
| 72 | \vfill |
---|
| 73 | } |
---|