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

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

Modifications and bugfixes

  • Correction of the layout standard Right: scrreprt instead of scrreport
  • Switch to 2-columns for the bibliography
  • Update svn:ignore property for list of figures and tables
  • Update LaTeX dependencies
  • Move \triad command declaration to ./global/latex/new_cmds.tex with \DeclareRobustCommand specific prefix to prevent issue with \listoffigures
  • LaTeX typos
  • Ignore todonotes.tex for time being
File size: 1.3 KB
RevLine 
[11148]1%% Global custom commands: \newcommand{<name>}[<args>][<first argument value>]{<code>}
2%% ==============================================================================
3
[11176]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
[11148]9%% NEMO and Fortran in small capitals
[11176]10\newcommand{\NEMO}{\textsc{nemo}~}
11\newcommand{\fortran}{\textsc{Fortran}~}
12\newcommand{\fninety}{\textsc{Fortran 90}~}
[11148]13
14%% Common aliases
15\renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}}
16\newcommand{\zstar }{\ensuremath{z^\star}}
17\newcommand{\sstar }{\ensuremath{s^\star}}
18\newcommand{\ztilde}{\ensuremath{\tilde z}}
19\newcommand{\stilde}{\ensuremath{\tilde s}}
[11176]20\newcommand{\ie}{\ensuremath{i.e.}~}
21\newcommand{\eg}{\ensuremath{e.g.}~}
[11148]22
23%% Inline maths
24\newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}}
25\newcommand{\rdt}{\Delta t}
26
27%% Text env. for Gurvan
28\newcommand{\gmcomment}[1]{}
29
30%% Maths
31\newcommand{\lt}{\left}
32\newcommand{\rt}{\right}
33\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}}
34\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}}
35
36%% Namelists inclusion
37\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
[11187]38
39%% Workaround for issue with \listoffigures
40\DeclareRobustCommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}}
Note: See TracBrowser for help on using the repository browser.