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