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 @ 11174

Last change on this file since 11174 was 11174, checked in by nicolasmartin, 5 years ago

Extension renaming
As .tex extension seems to be recognized natively by Trac for syntax highlighting, prefer to use it for all files under ./latex/global.
The difference between .tex or .sty is a bit cryptic for what I currently know

File size: 1.7 KB
Line 
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}}
Note: See TracBrowser for help on using the repository browser.