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/2020/dev_r13787_doc_latex_recovery/doc/latex/global – NEMO

source: NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/new_cmds.tex @ 13825

Last change on this file since 13825 was 13825, checked in by nicolasmartin, 4 years ago

#2414 Skechty fixes to complete the manual compilation

File size: 1.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%% NEMO and Fortran in small capitals
10\newcommand{\NEMO}{\textsc{nemo}~}
11\newcommand{\TOP   }{\textsl{TOP}}
12\newcommand{\PISCES}{\textsl{PISCES}}
13\newcommand{\fortran}{\textsc{Fortran}~}
14\newcommand{\fninety}{\textsc{Fortran 90}~}
15
16%% Common aliases
17\renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}}
18\newcommand{\zstar }{\ensuremath{z^\star}}
19\newcommand{\sstar }{\ensuremath{s^\star}}
20\newcommand{\ztilde}{\ensuremath{\tilde z}}
21\newcommand{\stilde}{\ensuremath{\tilde s}}
22\newcommand{\ie}{\ensuremath{i.e.}~}
23\newcommand{\eg}{\ensuremath{e.g.}~}
24
25%% Inline maths
26\newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}}
27\newcommand{\rdt}{\Delta t}
28
29%% Gurvan's comments
30\newcommand{\cmtgm}[1]{}
31
32%% Maths
33\newcommand{\lt}{\left}
34\newcommand{\rt}{\right}
35\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}}
36\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}}
37
38%% Workaround for issue with \listoffigures
39\DeclareRobustCommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}}
40
41%% New command for ToC
42\newcommand{\chaptertoc}[1][Table of contents]{
43  \thispagestyle{empty}
44  \etocsettocstyle{\addsec*{#1}}{}
45  \localtableofcontents
46  \vfill
47}
Note: See TracBrowser for help on using the repository browser.