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/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/doc/latex/global – NEMO

source: NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/doc/latex/global/new_cmds.tex @ 11525

Last change on this file since 11525 was 11525, checked in by smasson, 5 years ago

dev_r10984_HPC-13 : merge with trunk@,11524 see #2285

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