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.
indexes.tex in NEMO/trunk/doc/latex/global – NEMO

source: NEMO/trunk/doc/latex/global/indexes.tex @ 11433

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

Pre-implementation of new cover page and new headings style for reference manuals

Cover page

The layout of the frontpage has been completely redesigned,
a coloured banner has been added to emphasize the title and easily identify each manual
between them.
The chosen color for each document (blue for NEMO, gray for SI3 and green for TOP) will be
used throughout the manual for the links and in the chapter headings.
The list of authors (writers/editors/reviewers) for the version of the manual is given next to
the abstract, which is now included in the frontpage.
A link to an existing ORCID profile for the author precedes its name.
Few settings have been added to each definitions.tex in order to adjust the rendering of the cover page (vertical spaces above and below the title, a subtitle, the width for authors list and
abstract section)

Headings

  • header: chapter number and title for even pages, same infos for section otherwise
  • footer: name of the manual and page numbering with the total number of pages (reverse order between odd/even pages)

For the chapter heading, a new style 'Bjornstrup' from fncychap package is now use.

Abstract

Split the section in two paragraphs for all manuals

  1. Common description with almost the same sentences only customized by the general infos of the model
  2. Specific part for the characteristics of the model

Troubleshooting

As announced, I have introduced some icons from academicons and fontawesome packages.
It required to switch from pdflatex to xelatex for the compilation and it prevents from now
the building of the whole document.
Also the PDF generated does not look nice due to the font

Work in progress...

File size: 1.2 KB
Line 
1
2\usepackage{imakeidx}
3
4%% Index entries (italic font for files, preformat for code)
5\newcommand{\hf}[1]{\textit{#1.h90}   \index{h90 files!#1}}
6\newcommand{\ifile}[1]{\textit{#1.nc} \index{Input NetCDF files!#1.nc}}
7\newcommand{\jp}[1]{\texttt{#1}       \index{Model parameters!#1}}
8\newcommand{\key}[1]{\index[keys]{#1}        \texttt{\textbf{key\_#1}}}
9\newcommand{\mdl}[1]{\index[modules]{#1}     \textit{#1.F90}          }
10\newcommand{\nam}[1]{\index[blocks]{#1}      \texttt{nam#1}           }
11\newcommand{\np}[1]{ \index[parameters]{#1}  \texttt{#1}              }
12\newcommand{\rou}[1]{\index[subroutines]{#1} \texttt{#1}              }
13
14\indexsetup{toclevel=section, othercode=\small}
15
16\makeindex[intoc=true, name=keys       , title=CPP keys            ({\em key\_     } prefix)           ]
17\makeindex[intoc=true, name=modules    , title=\fortran modules                                        ]
18\makeindex[intoc=true, name=blocks     , title=Namelist blocks     ({\em nam       } prefix), columns=3]
19\makeindex[intoc=true, name=parameters , title=Namelist parameters ({\em [cdlnr]n\_}       ), columns=3]
20\makeindex[intoc=true, name=subroutines, title=Subroutines                                             ]
Note: See TracBrowser for help on using the repository browser.