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{\mtoc}{\minitoc} |
---|
6 | \newcommand{\biblio}{ \bibliography{../main/bibliography} } |
---|
7 | \newcommand{\pindex}{\printindex} |
---|
8 | |
---|
9 | %% NEMO and Fortran in small capitals |
---|
10 | \newcommand{\NEMO }{\textsc{nemo}} |
---|
11 | \newcommand{\SIcube }{\textsc{si$^3$}} |
---|
12 | \newcommand{\TOP }{\textsc{top}} |
---|
13 | \newcommand{\fortran}{\textsc{Fortran}} |
---|
14 | \newcommand{\fninety}{\textsc{Fortran 90}} |
---|
15 | |
---|
16 | %% Common aliases |
---|
17 | \renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}} |
---|
18 | \newcommand{\zstar }{\ensuremath{z^\star}} |
---|
19 | \newcommand{\sstar }{\ensuremath{s^\star}} |
---|
20 | \newcommand{\ztilde}{\ensuremath{\tilde z}} |
---|
21 | \newcommand{\stilde}{\ensuremath{\tilde s}} |
---|
22 | \newcommand{\ie}{\ensuremath{i.e.}} |
---|
23 | \newcommand{\eg}{\ensuremath{e.g.}} |
---|
24 | |
---|
25 | %% Inline maths |
---|
26 | \newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}} |
---|
27 | \newcommand{\rdt}{\Delta t} |
---|
28 | |
---|
29 | %% Gurvan's comments |
---|
30 | \newcommand{\gmcomment}[1]{} |
---|
31 | |
---|
32 | %% Maths |
---|
33 | \newcommand{\lt}{\left} |
---|
34 | \newcommand{\rt}{\right} |
---|
35 | \newcommand{\vect}[1]{\ensuremath{ \mathbf{#1} }} |
---|
36 | \newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} |
---|
37 | |
---|
38 | %% Convert chapter/section headings to lowercase |
---|
39 | \renewcommand{\chaptermark}[1]{\markboth{#1}{}} |
---|
40 | \renewcommand{\sectionmark}[1]{\markright{#1}{}} |
---|
41 | |
---|
42 | %% Retrieve month name |
---|
43 | \renewcommand{\today}{ |
---|
44 | \ifcase \month\or January\or February\or March\or |
---|
45 | April\or May\or June\or |
---|
46 | July\or August\or September\or |
---|
47 | October\or November\or December |
---|
48 | \fi, \number \year |
---|
49 | } |
---|
50 | |
---|
51 | %% Macro for link to orcid profile |
---|
52 | \newcommand{\orcid}[1]{ \href{http://orcid.org/#1}{\textcolor{orcidcolor} \aiOrcidSquare} } |
---|
53 | |
---|
54 | %% Workaround for issue with \listoffigures |
---|
55 | \DeclareRobustCommand{\triad}[6][]{\ensuremath{ {}_{#2}^{#3} { \mathbb{#4}_{#1} }_{#5}^{\,#6} }} |
---|