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

Last change on this file since 11176 was 11176, checked in by nicolasmartin, 15 months ago

Implementation of multi-indexes instead of an indiscrimate aggregate index
Creation of 5 sections under Indexes chapter for the most relevant lists of index entries:
namelist blocks and parameters, CPP keys, modules and subroutines.

  • indexes.tex & index.ist: new file in global directory for index management
  • Add symbolic links under main to non-existing *.idx before LaTeX compilation to reduce trivial error messages with makeindex
  • Create latexmkrc init file loaded latexmk with '-r' option in order to apply the style rules to the indexes with the sequence of several compilations

Other changes:

  • Define a preamble.tex with the list of files to load from global folder
  • Integrate 'Citation' subsubsection in new info_page.tex for the 2nd page along with 'frontpage.tex' for the cover, in order to have a clear distinction with \maketitle in the main LaTeX document
  • Move 'Foreword' chapter from subfiles to main as more appropriate

Bugfixes with few attempts of HTML export

  • One single location for defining the paths to search for images with \graphicspath in packages.tex
  • Renaming of authors variables (\1stauthor\firstauthor and so one)
  • Update of LaTeX dependencies in terms of new pkgs (DEPS)
File size: 1.2 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%% Namelists inclusion
37\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
Note: See TracBrowser for help on using the repository browser.