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

Last change on this file since 14257 was 14257, checked in by nicolasmartin, 3 years ago

Overall review of LaTeX sources (not tested completely as of now):

  • Reworking global files: main document.tex, add glossary.tex, cosmetic changes...
  • Ignore missing namelists (namsbc_isf, namsbc_iscpl and namptr)
  • Removal of references for unused indices (\hfile, \ifile and \jp)
  • Update of .svnignore and svn:ignore properties accordingly
  • Split of manual abstract into a common NEMO abs for all and a specific one for each engine
  • Shrinking variables names used in the frontmatter
File size: 2.6 KB
Line 
1%% =================================================================================================
2%% Global custom commands
3%% =================================================================================================
4
5%% \newcommand{<name>}[<args>][<first argument value>]{<code>}
6
7%% Same font for NEMO and its core engines
8\newcommand{\NEMO   }{\textsl{NEMO}}
9\newcommand{\OPA    }{\textsl{OPA}}
10\newcommand{\SIcube }{\textsl{SI$^3$}}
11\newcommand{\TOP    }{\textsl{TOP}}
12\newcommand{\PISCES }{\textsl{PISCES}}
13\newcommand{\NEMOVAR}{\textsl{NEMOVAR}}
14
15%% URL links for consortium institutes and external components
16\newcommand{\CMCC }{\href{http://www.cmcc.it}          }
17\newcommand{\CNRS }{\href{http://www.cnrs.fr}          }
18\newcommand{\MOI  }{\href{http://www.mercator-ocean.fr}}
19\newcommand{\UKMO }{\href{http://www.metoffice.gov.uk} }
20\newcommand{\NERC }{\href{http://nerc.ukri.org}        }
21\newcommand{\AGRIF}{\href{http://agrif.imag.fr                  }{AGRIF}}
22\newcommand{\BFM  }{\href{http://bfm-community.eu               }{BFM}}
23\newcommand{\CICE }{\href{http://github.com/CICE-Consortium/CICE}{CICE}}
24\newcommand{\OASIS}{\href{http://portal.enes.org/oasis          }{OASIS}}
25\newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver }{XIOS}}
26
27%% Fortran in small capitals
28\newcommand{\fortran}{\textsc{Fortran}}
29\newcommand{\fninety}{\textsc{Fortran 90}}
30
31%% Common aliases
32\renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}}
33\newcommand{\eg    }{\ensuremath{e.g.}}
34\newcommand{\ie    }{\ensuremath{i.e.}}
35\newcommand{\zstar }{\ensuremath{z^\star}}
36\newcommand{\sstar }{\ensuremath{s^\star}}
37\newcommand{\ztilde}{\ensuremath{\tilde z}}
38\newcommand{\stilde}{\ensuremath{\tilde s}}
39
40%% Gurvan's comments
41\newcommand{\cmtgm}[1]{}
42
43%% Maths: reduce equation
44\newcommand{\fractext}[2]{\textstyle\frac{#1}{#2}}
45\newcommand{\lt}{\left}
46\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}}
47\newcommand{\rdt}{\Delta t}
48\newcommand{\rt}{\right}
49\newcommand{\vect}[1][]{\ensuremath{\mathbf{#1}}}
50
51%% Retrieve month name
52\renewcommand{\today}{
53  \ifcase \month\or   January\or February\or    March\or    April\or
54                          May\or     June\or     July\or   August\or
55                    September\or  October\or November\or December
56  \fi, \number \year
57}
58
59%% Workaround for \listoffigures issue
60\DeclareRobustCommand{\triad}[6]{
61  \ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}
62}
63
64%% New command for ToC (?)
65\newcommand{\chaptertoc}[1][Table of contents]{
66  \etocsettocstyle{\addsec*{#1}}{}
67  \localtableofcontents
68  \vfill
69}
70
71%% ORCID links
72\newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidclr}\aiOrcidSquare}}
Note: See TracBrowser for help on using the repository browser.