# source:NEMO/trunk/doc/latex/global/new_cmds.tex@11212

Last change on this file since 11212 was 11212, checked in by nicolasmartin, 16 months ago

Mainly some modifications to enable the compilation of the manual by dedicated LaTeX editors
The compilation options have been gathered within latexmkrc RC file for Latexmk,
this has been tested successfully for 2 cross-platform softwares: Texmaker & Te Xstudio?
Don't be able to test it under TeXShop for MacOS, but it should be portable as
it requires only to modify the configuration of few cmds: LaTeX, PdfLaTeX, Latexmk & PDF viewer
For a comprehensive list of available LaTeX editors, see https://en.wikibooks.org/wiki/LaTeX/Installation#Cross-platform)

Other changes

• Rectification of the required list for LaTeX pkgs
• Append thanks.tex with the first reviewers of chapters
• Configuration of the background color for namelists
• Testing of colors for different types of links
File size: 1.3 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{\fortran}{\textsc{Fortran}~}
12\newcommand{\fninety}{\textsc{Fortran 90}~}
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}}
20\newcommand{\ie}{\ensuremath{i.e.}~}
21\newcommand{\eg}{\ensuremath{e.g.}~}
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%% Workaround for issue with \listoffigures