1 | %% Global custom commands: \newcommand{<name>}[<args>][<first argument value>]{<code>} |
---|
2 | %% ============================================================================== |
---|
3 | |
---|
4 | %% NEMO and Fortran in small capitals |
---|
5 | \newcommand{\NEMO}{\textsc{nemo}} |
---|
6 | \newcommand{\fortran}{\textsc{Fortran}} |
---|
7 | \newcommand{\fninety}{\textsc{Fortran 90}} |
---|
8 | |
---|
9 | %% Common aliases |
---|
10 | \renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}} |
---|
11 | \newcommand{\zstar }{\ensuremath{z^\star}} |
---|
12 | \newcommand{\sstar }{\ensuremath{s^\star}} |
---|
13 | \newcommand{\ztilde}{\ensuremath{\tilde z}} |
---|
14 | \newcommand{\stilde}{\ensuremath{\tilde s}} |
---|
15 | \newcommand{\ie}{\ensuremath{i.e.}} |
---|
16 | \newcommand{\eg}{\ensuremath{e.g.}} |
---|
17 | |
---|
18 | %% Inline maths |
---|
19 | \newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}} |
---|
20 | \newcommand{\rdt}{\Delta t} |
---|
21 | |
---|
22 | %% Text env. for Gurvan |
---|
23 | \newcommand{\gmcomment}[1]{} |
---|
24 | |
---|
25 | %% Index entries (italic font for files, preformat for code) |
---|
26 | \newcommand{\hf}[1]{\textit{#1.h90} \index{h90 files!#1}} |
---|
27 | \newcommand{\ifile}[1]{\textit{#1.nc} \index{Input NetCDF files!#1.nc}} |
---|
28 | \newcommand{\jp}[1]{\texttt{#1} \index{Model parameters!#1}} |
---|
29 | \newcommand{\key}[1]{\texttt{\textbf{key\_#1}} \index{CPP keys!key\_#1}} |
---|
30 | \newcommand{\mdl}[1]{\textit{#1.F90} \index{Modules!#1}} |
---|
31 | \newcommand{\ngn}[1]{\texttt{#1} \index{Namelist Group Names!#1}} |
---|
32 | \newcommand{\np}[1]{\texttt{#1} \index{Namelist parameters!#1}} |
---|
33 | \newcommand{\rou}[1]{\texttt{#1} \index{Routines!#1}} |
---|
34 | |
---|
35 | %% Maths |
---|
36 | \newcommand{\lt}{\left} |
---|
37 | \newcommand{\rt}{\right} |
---|
38 | \newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} |
---|
39 | \newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} |
---|
40 | |
---|
41 | %% Namelists inclusion |
---|
42 | \newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} |
---|