Ignore:
Timestamp:
2018-03-06T17:12:34+01:00 (2 years ago)
Author:
nicolasmartin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/DOC/texfiles/styles/NEMO_manual.sty

    r9373 r9376  
     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 
    112\def\half{\textstyle\frac{1}{2}} 
    213\def\hhalf{\scriptstyle\frac{1}{2}} 
     14 
    315\def\quarter{\textstyle\frac{1}{4}} 
    416\def\qquarter{\scriptstyle\frac{1}{4}} 
     
    618\def\stwelfth{\sfrac{1}{12}} 
    719\def\sthirtysixth{\sfrac{1}{36}} 
    8 % \newcommand{\grad}{\boldsymbol{\nabla}} 
    9 % \newcommand{\gradh}{\boldsymbol{\nabla}_h} 
     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 
    1041\newcommand{\grad}{\nabla} 
    1142\newcommand{\gradh}{\nabla_h} 
    12 \def\bgamma\boldsymbol{\gamma} 
    13 \def\rdt{\Delta t} 
     43 
    1444\newcommand{\ew}[3]{{e_{3#1}}_{\,#2}^{\,#3} } 
    15 \newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} % for vectors                                % non-italic bold 
     45\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} 
    1646\newcommand{\Div}{\grad\cdot} 
    17 % \newcommand{\curl}{\boldsymbol{\nabla} \times} % for curl 
    18 \newcommand{\curl}{\nabla \times} % for curl 
     47\newcommand{\curl}{\nabla \times} 
    1948\newcommand{\pd}[2][]{\frac{\partial #1}{\partial #2}} 
    20 \def\deg{$^{\circ}$}                           % degrees  (NB: \r{} can % % also be used) 
    21 \def\degC{$^{\circ}C$} 
    22 \def\degK{$^{\circ}K$} 
    23 \def\degN{$^{\circ}N$} 
    24 \def\degS{$^{\circ}S$} 
    25 \newcommand{\alpbet} {\left(\alpha / \beta \right)}   % alpha/beta  for slp computation 
     49\newcommand{\alpbet} {\left(\alpha / \beta \right)} 
     50 
    2651\newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}} 
    2752\newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}} 
     
    2954\newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}} 
    3055\newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}} 
     56 
    3157\newcommand{\Alts}{{A}} 
    3258\newcommand{\Alt}{{A^{lT}}} 
     59 
    3360\newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}} 
    3461\newcommand{\rML}[1][i]{r_{\mathrm{ML}\,#1}} 
     62 
    3563\newcommand{\mygstrut}[2]{\rule[#1 em]{0pt}{#2 em}} 
    3664\newcommand{\mystrut}{\rule[-.9 em]{0pt}{1.79 em}} 
Note: See TracChangeset for help on using the changeset viewer.