New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
new_cmds.tex in NEMO/trunk/doc/latex/global – NEMO

source: NEMO/trunk/doc/latex/global/new_cmds.tex

Last change on this file was 14527, checked in by nicolasmartin, 3 years ago

Various minor changes

File size: 3.0 KB
RevLine 
[14257]1%% =================================================================================================
2%% Global custom commands
3%% =================================================================================================
[11148]4
[14257]5%% \newcommand{<name>}[<args>][<first argument value>]{<code>}
6
7%% Same font for NEMO and its core engines
8\newcommand{\NEMO   }{\textsl{NEMO}}
9\newcommand{\OPA    }{\textsl{OPA}}
10\newcommand{\SIcube }{\textsl{SI$^3$}}
11\newcommand{\TOP    }{\textsl{TOP}}
12\newcommand{\PISCES }{\textsl{PISCES}}
[14113]13\newcommand{\NEMOVAR}{\textsl{NEMOVAR}}
[11515]14
[14257]15%% URL links for consortium institutes and external components
16\newcommand{\CMCC }{\href{http://www.cmcc.it}          }
17\newcommand{\CNRS }{\href{http://www.cnrs.fr}          }
18\newcommand{\MOI  }{\href{http://www.mercator-ocean.fr}}
19\newcommand{\UKMO }{\href{http://www.metoffice.gov.uk} }
20\newcommand{\NERC }{\href{http://nerc.ukri.org}        }
21\newcommand{\AGRIF}{\href{http://agrif.imag.fr                  }{AGRIF}}
22\newcommand{\BFM  }{\href{http://bfm-community.eu               }{BFM}}
[14113]23\newcommand{\CICE }{\href{http://github.com/CICE-Consortium/CICE}{CICE}}
[14257]24\newcommand{\OASIS}{\href{http://portal.enes.org/oasis          }{OASIS}}
25\newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver }{XIOS}}
[11515]26
[14113]27%% Fortran in small capitals
28\newcommand{\fortran}{\textsc{Fortran}}
29\newcommand{\fninety}{\textsc{Fortran 90}}
30
[11148]31%% Common aliases
32\renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}}
[14257]33\newcommand{\eg    }{\ensuremath{e.g.}}
34\newcommand{\ie    }{\ensuremath{i.e.}}
[11148]35\newcommand{\zstar }{\ensuremath{z^\star}}
36\newcommand{\sstar }{\ensuremath{s^\star}}
37\newcommand{\ztilde}{\ensuremath{\tilde z}}
38\newcommand{\stilde}{\ensuremath{\tilde s}}
39
[14113]40%% Gurvan's comments
41\newcommand{\cmtgm}[1]{}
[11148]42
[14257]43%% Maths: reduce equation
44\newcommand{\fractext}[2]{\textstyle\frac{#1}{#2}}
[11148]45\newcommand{\lt}{\left}
[14257]46\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}}
47\newcommand{\rdt}{\Delta t}
[11148]48\newcommand{\rt}{\right}
[14257]49\newcommand{\vect}[1][]{\ensuremath{\mathbf{#1}}}
[11148]50
[14113]51%% Retrieve month name
52\renewcommand{\today}{
[14257]53  \ifcase \month\or   January\or February\or    March\or    April\or
54                          May\or     June\or     July\or   August\or
55                    September\or  October\or November\or December
[14113]56  \fi, \number \year
57}
58
[14527]59%% Custom aliases
60\newcommand{\cf}{\ensuremath{C\kern-0.14em f}}
61\newcommand{\rML}[1][i]{\ensuremath{_{\mathrm{ML}\,#1}}}
62\newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}}
63\newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}}
64\newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}}
65\newcommand{\triadt}[5]{\ensuremath{{}_{#1}^{#2}{\tilde{\mathbb{#3}}}_{#4}^{\,#5}}}
66\newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}}
67\newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}}
[14113]68
[14257]69%% New command for ToC (?)
70\newcommand{\chaptertoc}[1][Table of contents]{
71  \etocsettocstyle{\addsec*{#1}}{}
72  \localtableofcontents
[14113]73  \vfill
74}
[14257]75
76%% ORCID links
77\newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidclr}\aiOrcidSquare}}
Note: See TracBrowser for help on using the repository browser.