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.
Changeset 11433 for NEMO/trunk/doc/latex/global/new_cmds.tex – NEMO

Ignore:
Timestamp:
2019-08-12T21:44:18+02:00 (5 years ago)
Author:
nicolasmartin
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/latex/global/new_cmds.tex

    r11212 r11433  
    22%% ============================================================================== 
    33 
    4 %% Include references and index for compilation of single subfile  
     4%% Include references and index for compilation of single subfile 
    55\newcommand{\mtoc}{\minitoc} 
    6 \newcommand{\biblio}{\bibliography{../main/bibliography}} 
     6\newcommand{\biblio}{ \bibliography{../main/bibliography} } 
    77\newcommand{\pindex}{\printindex} 
    88 
    99%% NEMO and Fortran in small capitals 
    10 \newcommand{\NEMO}{\textsc{nemo}~} 
    11 \newcommand{\fortran}{\textsc{Fortran}~} 
    12 \newcommand{\fninety}{\textsc{Fortran 90}~} 
     10\newcommand{\NEMO   }{\textsc{nemo}} 
     11\newcommand{\SIcube }{\textsc{si$^3$}} 
     12\newcommand{\TOP    }{\textsc{top}} 
     13\newcommand{\fortran}{\textsc{Fortran}} 
     14\newcommand{\fninety}{\textsc{Fortran 90}} 
    1315 
    1416%% Common aliases 
     
    1820\newcommand{\ztilde}{\ensuremath{\tilde z}} 
    1921\newcommand{\stilde}{\ensuremath{\tilde s}} 
    20 \newcommand{\ie}{\ensuremath{i.e.}~} 
    21 \newcommand{\eg}{\ensuremath{e.g.}~} 
     22\newcommand{\ie}{\ensuremath{i.e.}} 
     23\newcommand{\eg}{\ensuremath{e.g.}} 
    2224 
    2325%% Inline maths 
     
    2527\newcommand{\rdt}{\Delta t} 
    2628 
    27 %% Text env. for Gurvan 
     29%% Gurvan's comments 
    2830\newcommand{\gmcomment}[1]{} 
    2931 
     
    3133\newcommand{\lt}{\left} 
    3234\newcommand{\rt}{\right} 
    33 \newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} 
     35\newcommand{\vect}[1]{\ensuremath{ \mathbf{#1} }} 
    3436\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} 
    3537 
     38%% Convert chapter/section headings to lowercase 
     39\renewcommand{\chaptermark}[1]{\markboth{#1}{}} 
     40\renewcommand{\sectionmark}[1]{\markright{#1}{}} 
     41 
     42%% Retrieve month name 
     43\renewcommand{\today}{ 
     44  \ifcase \month\or January\or February\or March\or 
     45                    April\or   May\or      June\or 
     46                    July\or    August\or   September\or 
     47                    October\or November\or December 
     48  \fi, \number \year 
     49} 
     50 
     51%% Macro for link to orcid profile 
     52\newcommand{\orcid}[1]{ \href{http://orcid.org/#1}{\textcolor{orcidcolor} \aiOrcidSquare} } 
     53 
    3654%% Workaround for issue with \listoffigures 
    37 \DeclareRobustCommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}} 
     55\DeclareRobustCommand{\triad}[6][]{\ensuremath{ {}_{#2}^{#3} { \mathbb{#4}_{#1} }_{#5}^{\,#6} }} 
Note: See TracChangeset for help on using the changeset viewer.