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