source: branches/2017/dev_merge_2017/DOC/texfiles/styles/NEMO_manual.sty @ 9376

Last change on this file since 9376 was 9376, checked in by nicolasmartin, 2 years ago

Global reorganisation of DOC directory: refactoring & cleaning of TeX source code for readability

File size: 2.4 KB
Line 
1%% ==============================================================================
2%% macros.sty:
3%% ==============================================================================
4
5
6\def\deg{$^{\circ}$}
7\def\degC{$^{\circ}C$}
8\def\degK{$^{\circ}K$}
9\def\degN{$^{\circ}N$}
10\def\degS{$^{\circ}S$}
11
12\def\half{\textstyle\frac{1}{2}}
13\def\hhalf{\scriptstyle\frac{1}{2}}
14
15\def\quarter{\textstyle\frac{1}{4}}
16\def\qquarter{\scriptstyle\frac{1}{4}}
17\def\squarter{\sfrac{1}{4}}
18\def\stwelfth{\sfrac{1}{12}}
19\def\sthirtysixth{\sfrac{1}{36}}
20
21\def\bgamma\boldsymbol{\gamma}
22\def\rdt{\Delta t}
23
24\newcommand{ \gmcomment}[1]{}
25\newcommand{ \sfcomment}[1]{}
26\newcommand{\sgacomment}[1]{}
27
28\newcommand{\nl}[1]{\texttt{\small{\textcolor{blue}{#1}}}}
29\newcommand{\NEMO}{\textit{NEMO}\xspace}
30
31\newcommand{    \ifile}[1]{\textit{  #1.nc}\index{Input NetCDF files!#1.nc}}
32\newcommand{       \jp}[1]{\textit{     #1}\index{     Model parameters!#1}}
33\newcommand{       \hf}[1]{\textit{ #1.h90}\index{             h90 file!#1}}
34\newcommand{      \key}[1]{\textbf{key\_#1}\index{        CPP keys!key\_#1}}
35\newcommand{      \mdl}[1]{\textit{ #1.F90}\index{              Modules!#1}}
36\newcommand{      \ngn}[1]{\textit{     #1}\index{  Namelist Group Name!#1}}
37\newcommand{       \np}[1]{\textit{     #1}\index{   Namelist variables!#1}}
38\newcommand{       \pp}[1]{\textit{     #1}\index{     Model parameters!#1}}
39\newcommand{      \rou}[1]{\textit{     #1}\index{             Routines!#1}}
40
41\newcommand{\grad}{\nabla}
42\newcommand{\gradh}{\nabla_h}
43
44\newcommand{\ew}[3]{{e_{3#1}}_{\,#2}^{\,#3} }
45\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}}
46\newcommand{\Div}{\grad\cdot}
47\newcommand{\curl}{\nabla \times}
48\newcommand{\pd}[2][]{\frac{\partial #1}{\partial #2}}
49\newcommand{\alpbet} {\left(\alpha / \beta \right)}
50
51\newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}}
52\newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}}
53\newcommand{\triadt}[5]{\ensuremath{{}_{#1}^{#2}{\tilde{\mathbb{#3}}}_{#4}^{\,#5}}}
54\newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}}
55\newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}}
56
57\newcommand{\Alts}{{A}}
58\newcommand{\Alt}{{A^{lT}}}
59
60\newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}}
61\newcommand{\rML}[1][i]{r_{\mathrm{ML}\,#1}}
62
63\newcommand{\mygstrut}[2]{\rule[#1 em]{0pt}{#2 em}}
64\newcommand{\mystrut}{\rule[-.9 em]{0pt}{1.79 em}}
Note: See TracBrowser for help on using the repository browser.