Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/document.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/document.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/document.tex	(revision 14644)
@@ -1,88 +1,90 @@
-
 %% =================================================================================================
-%% Template structure for reference manuals
+%% Manual structure
 %% =================================================================================================
 
-%% NEMO release version
-\def \version{trunk}
-
-%% Preamble
+%% Preamble: global configuration
 %% =================================================================================================
 
-%% Document layout
-\documentclass[fontsize = 10pt, twoside, abstract]{scrreprt}
+%% Layout
+\documentclass[fontsize=10pt,twoside,abstract,draft]{scrreprt}
+%\documentclass[fontsize=10pt,twoside,abstract      ]{scrreprt}
 
-%% Load manual configuration
-\input{../../global/prologue}
+%% Overall configuration 
+\input{../../global/preamble}
 
-%% End of common preamble between main and sub-files
-%% Override custom cmds for full manual compilation
-\newcommand{\subinc}[1]{#1}
-\newcommand{\subexc}[1]{}
+%% Special cmds around to {in,ex}clude content only in subfile
+  \newcommand{\subinc}[1]{#1}
+  \newcommand{\subexc}[1]{  }
 
 \begin{document}
 
-\renewcommand{\subinc}[1]{}
+\renewcommand{\subinc}[1]{  }
 \renewcommand{\subexc}[1]{#1}
 
-
-%% Frontmatter
+%% Frontmatter: covers
+%% ({sub}title, DOI, authors, abstract and color theme are specific to each manual)
 %% =================================================================================================
 
+%\frontmatter %% Not recognized in 'scrreprt' document class
 \pagenumbering{gobble}   %% Disable page numbering temporarily
+\pagestyle{empty}
 
-%% Title page
 \input{../../global/frontpage}
-
-%% Footer for introductory parts (no header by cleaning default)
-\ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark}
-
-%% Information page (2nd page)
 \input{../../global/info_page}
 
+\cleardoublepage
+
+\pagenumbering{Roman} %% Reactivate page numbering (uppercase roman numbers)
+\pagestyle{plain}
+%\lastpageref{pagesLTS.0}
+
+\tableofcontents
 \listoffigures
 \listoflistings
 \listoftables
+%\listoftodos
+%\lastpageref{pagesLTS.Roman}
 
-\clearpage
+\cleardoublepage
 
-\pagenumbering{roman}
-\ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark}
+%% Mainmatter: toc, lists, introduction and primary chapters
+%% =================================================================================================
+
+%\mainmatter %% Not recognized in 'scrreprt' document class
+\pagenumbering{arabic} %% Standard page numbering
+\pagestyle{plain}
 
 \input{introduction}
 
-%% Table of Contents
-\tableofcontents
+\cleardoublepage
 
-\clearpage
+\pagestyle{scrheadings}
+\renewcommand{\chapterpagestyle}{empty}
 
+\input{chapters}
 
-%% Mainmatter
+%% Appendix: subordinate chapters
 %% =================================================================================================
 
-%% Headings for document body
-\pagenumbering{arabic}
-\lohead{Chap.\ \thechapter\ \leftmark} \rehead{Sect.\ \thesection\ \rightmark}
-\ifoot[]{Page\ \pagemark\ of \pageref*{LastPage}}
+\appendix %% Chapter numbering with letters by now
+\lohead{Apdx \thechapter\ \leftmark}
 
-\include{chapters}
+\input{appendices}
 
+\input{../../global/coding_rules} %% Add coding rules on every manual
 
-%% Appendix
+%\lastpageref{pagesLTS.arabic}
+\cleardoublepage
+
+%% Backmatter: bibliography, glossaries and indices
 %% =================================================================================================
 
-\appendix   %% Chapter numbering with letters by now
-\lohead{Apdx\ \thechapter\ \leftmark}
-\include{appendices}
+%\backmatter %% Not recognized in 'scrreprt' document class
+\pagenumbering{roman} %% Lowercase roman numbers
+\pagestyle{plain}
 
-%% Append coding rules for every manual
-\input{../../global/coding_rules}
-
-
-%% Backmatter
-%% =================================================================================================
-
-%% Bibliography and indexes
 \input{../../global/epilogue}
 
+%\lastpageref{pagesLTS.roman}
+
 \end{document}
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/epilogue.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/epilogue.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/epilogue.tex	(revision 14644)
@@ -1,17 +1,24 @@
-
-\clearpage
+%% =================================================================================================
+%% Backmatter
+%% =================================================================================================
 
 %% Bibliography
+%% =================================================================================================
+
 \phantomsection
 \addcontentsline{toc}{chapter}{Bibliography}
-\lohead{Bibliography} \rehead{Bibliography}
+\lohead{Bibliography}
+\rehead{Bibliography}
 \bibliography{../main/bibliography}
 
 \clearpage
 
-%% Indexes
+%% Indices
+%% =================================================================================================
+
 \phantomsection
-\addcontentsline{toc}{chapter}{Indexes}
-\lohead{Indexes} \rehead{Indexes}
+\addcontentsline{toc}{chapter}{Indices}
+\lohead{Indices}
+\rehead{Indices}
 \printindex[blocks]
 \printindex[keys]
@@ -19,2 +26,12 @@
 \printindex[parameters]
 \printindex[subroutines]
+
+\clearpage
+
+%% Glossary
+%% =================================================================================================
+
+%\phantomsection
+%\addcontentsline{toc}{chapter}{Glossary}
+%\lohead{Glossary}\rehead{Glossary}
+%\printglossaries
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/frontpage.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/frontpage.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/frontpage.tex	(revision 14644)
@@ -1,67 +1,71 @@
+%% =================================================================================================
+%% Front cover
+%% =================================================================================================
 
 \begin{titlepage}
-%  \newgeometry{hmargin = 1.5cm, vmargin = 3cm}
-  \setlength{\parindent}{0pt}
+%   \newgeometry{hmargin=1.5cm,vmargin=3cm}
+   \setlength{\parindent}{0pt}
 
-  \begin{center}
-    \begin{minipage}{0.3\textwidth}
-      \includegraphics[height=1.5cm]{logos/NEMO_grey}
-    \end{minipage}\begin{minipage}{0.6\textwidth}
-      \begin{center}
-      \Large\slshape
-      \textbf{N}ucleus for \textbf{E}uropean \textbf{M}odelling of the \textbf{O}cean \\
+   \begin{center}
+
+      \begin{minipage}{0.3\textwidth}
+         \includegraphics[height=1.5cm]{NEMO_grey}
+      \end{minipage} %% Don't insert void line between `minipage` envs
+      \begin{minipage}{0.6\textwidth}
+         \begin{center}
+            \Large\slshape
+            \textbf{N}ucleus for \textbf{E}uropean \textbf{M}odelling of the \textbf{O}cean \\
+            \medskip
+            \hyperref[resources]{
+               \faWordpress \hspace{1cm} \faCodeFork      \hspace{1cm}
+               \faGithub    \hspace{1cm} \faCloudDownload \hspace{1cm} \faEnvelope
+            }
+         \end{center}
+      \end{minipage}
+
+   \end{center}
+
+   \spcup
+   \textcolor{white}{\fontsize{0.8cm}{0.8cm}\selectfont\textbf{\hdg}}
+   \ifdef{\shdg}{\medskip\par\textcolor{white}{\Huge\shdg}}{}
+   \spcdn
+
+   \begin{center}
+      \LARGE Version {\ver} - {\today} \\
       \medskip
-      \hyperref[resources]{\textcolor{black}{
-          \faWordpress \hspace{0.75cm} \faCodeFork      \hspace{0.75cm}
-          \faGithub    \hspace{0.75cm} \faCloudDownload \hspace{0.75cm} \faEnvelope
-        }
-      }
-      \end{center}
-    \end{minipage}
-  \end{center}
+      \href{http://doi.org/10.5281/zenodo.\zid}{\includegraphics{zenodo.\zid}}
+   \end{center}
 
-  \spacetop
-  \textcolor{white}{\fontsize{0.8cm}{0.8cm}\selectfont\textbf{\heading}}
-  \ifdef{\subheading}{
-    \medskip
-    \par
-    \textcolor{white}{\Huge \subheading}
-  }{}
-  \spacedown
+   \vfill
 
-  \begin{center}
-    \LARGE Version \version\ -\ \today \\
-    \medskip
-    \href{http://doi.org/10.5281/zenodo.\zid}{ \includegraphics{badges/zenodo.\zid} }
-  \end{center}
+   \begin{minipage}{\autwd}
+      \raggedleft\input{authors}
+   \end{minipage}
+   \hspace{15pt} %% Don't insert void line between `minipage` envs
+   \begin{minipage}{0.02\linewidth}
+      \rule{1pt}{\lnlg}
+   \end{minipage}
+   \hspace{ 5pt} %%   "     ""    ""   ""     "        ""      ""
+   \begin{minipage}{\abswd}
+      \begin{abstract}
+         \input{abstract}
+      \end{abstract}
+   \end{minipage}
 
-  \vfill
+   \vfill
 
-  \begin{minipage}{\authorswidth}
-    \raggedleft
-    \input{authors}
-  \end{minipage}\hspace{15pt}\begin{minipage}{0.02\linewidth}
-    \rule{1pt}{\rulelenght}
-  \end{minipage}\hspace{ 5pt}\begin{minipage}{\abstractwidth}
-    \begin{abstract}
-      \input{abstract}
-    \end{abstract}
-  \end{minipage}
-
-  \vfill
-
-  \begin{center}
-    \Large
-    \href{http://www.cmcc.it          }{ \includegraphics[height=1cm]{logos/CMCC} } \hspace{0.25cm}
-    \href{http://www.cnrs.fr          }{ \includegraphics[height=1cm]{logos/CNRS} } \hspace{0.25cm}
-    \href{http://www.mercator-ocean.fr}{ \includegraphics[height=1cm]{logos/MOI}  } \hspace{0.25cm}
-    \href{http://www.metoffice.gov.uk }{ \includegraphics[height=1cm]{logos/UKMO} } \hspace{0.25cm}
-    \href{http://nerc.ukri.org        }{ \includegraphics[height=1cm]{logos/NERC} } \\
-    \medskip
-    \slshape
-    {C}ommunity \hspace{1.5em} {O}cean \hspace{1.5em} {M}odel \\
-  \end{center}
+   \begin{center}
+      \Large
+      \CMCC{\includegraphics[height=1cm]{CMCC}} \hspace{0.25cm}
+      \CNRS{\includegraphics[height=1cm]{CNRS}} \hspace{0.25cm}
+       \MOI{\includegraphics[height=1cm]{MOI} } \hspace{0.25cm}
+      \UKMO{\includegraphics[height=1cm]{UKMO}} \hspace{0.25cm}
+      \NERC{\includegraphics[height=1cm]{NERC}}                 \\
+      \medskip
+      \slshape
+         {C}ommunity \hspace{1.5em} {O}cean \hspace{1.5em} {M}odel
+   \end{center}
 
 \end{titlepage}
 
-\restoregeometry
+%\restoregeometry
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/glossaries.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/glossaries.tex	(revision 14644)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/glossaries.tex	(revision 14644)
@@ -0,0 +1,11 @@
+%% =================================================================================================
+%% Glossaries
+%% =================================================================================================
+
+\usepackage[toc]{glossaries}
+
+%% \newglossaryentry{<label>}{<settings>}
+
+%% \newacronym{<label>}{<abbrv>}{<full>}
+
+\makeglossaries
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/highlighting.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/highlighting.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/highlighting.tex	(revision 14644)
@@ -1,32 +1,32 @@
+%% =================================================================================================
 %% Syntax highlighting configuration
-%% ==============================================================================
-
-\usepackage[outputdir=../build, chapter, newfloat]{minted}
+%% =================================================================================================
 
 %% Global highlighting style
-\definecolor{bg}{HTML}{f8f8f8}
+\definecolor{bg}{HTML}{f8f8f8} %% ?
 \usemintedstyle{emacs}
-\setminted{bgcolor=bg, fontsize=\scriptsize, breaklines}
-\setminted[xml]{style=borland} %% Specific per language
+\setminted{bgcolor=bg,fontsize=\scriptsize,breaklines}
+\setminted[xml]{style=borland} %% Specific style for XML
+
+%% Inline
+\newmintinline[forcode]{fortran}{bgcolor=,fontsize=auto} %% \forcode{...}
+\newmintinline[xmlcode]{xml}{    bgcolor=,fontsize=auto} %% \xmlcode{...}
+\newmintinline[snippet]{console}{bgcolor=,fontsize=auto} %% \snippet{...}
 
 %% Oneliner
-\newmint[forline]{fortran}{}   % \forline|...|
-\newmint[xmlline]{xml}{}       % \xmlline|...|
-\newmint[cmd]{console}{}       % \cmd|...|
+\newmint[forline]{fortran}{} %% \forline|...|
+\newmint[xmlline]{xml    }{} %% \xmlline|...|
+\newmint[cmd]{    console}{} %% \cmd|...|
 
 %% Multi-lines
-\newminted[forlines]{fortran}{}   % \begin{forlines}
-\newminted[xmllines]{xml}{}       % \begin{xmllines}
-\newminted[cmds]{console}{}       % \begin{cmds}
-\newminted[clines]{c}{}           % \begin{clines}
+\newminted[forlines]{fortran}{} %% \begin{forlines}
+\newminted[xmllines]{xml    }{} %% \begin{xmllines}
+\newminted[cmds]{    console}{} %% \begin{cmds}
+\newminted[clines]{  c      }{} %% \begin{clines}
 
-%% File
+%% File (namelist or module)
 \newmintedfile[forfile]{fortran}{}
-
-%% Inline
-\newmintinline[forcode]{fortran}{bgcolor=, fontsize=auto}   % \forcode{...}
-\newmintinline[xmlcode]{xml}{    bgcolor=, fontsize=auto}   % \xmlcode{...}
-\newmintinline[snippet]{console}{bgcolor=, fontsize=auto}   % \snippet{...}
 
 %% Namelists inclusion
 \newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
+
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/index.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/index.tex	(revision 14197)
+++ 	(revision )
@@ -1,25 +1,0 @@
-
-\usepackage{imakeidx}
-
-%% Naming customization
-\renewcommand{\listingname}{namelist}
-\renewcommand{\listlistingname}{List of Namelists}
-
-%% Index entries (italic font for files, preformat for code)
-\newcommand{\hf}[1]{   \index{h90 files!#1}             \textit{#1.h90}          }
-\newcommand{\ifile}[1]{\index{Input NetCDF files!#1.nc} \textit{#1.nc}           }
-\newcommand{\jp}[1]{   \index{Model parameters!#1}      \texttt{#1}              }
-\newcommand{\key}[1]{  \index[keys]{#1@\texttt{\textbf{key\_#1}}} \texttt{\textbf{key\_#1}}}
-\newcommand{\mdl}[1]{  \index[modules]{#1@\textit{#1.F90}}        \textit{#1.F90}          }
-\newcommand{\nam}[2]{  \index[blocks]{#1@\texttt{\&nam#2}}        \forcode{&nam#1} (\autoref{lst:nam#1})}
-\newcommand{\np}[3][]{ \index[parameters]{#3@\texttt{#3}}         \forcode{#2#1}           }
-\newcommand{\rou}[1]{  \index[subroutines]{#1@\texttt{#1}}        \texttt{#1}              }
-
-
-\indexsetup{toclevel=section, othercode=\small}
-
-\makeindex[intoc=true, name=blocks     , title=Namelist blocks      , columns=3]
-\makeindex[intoc=true, name=keys       , title=CPP keys                        ]
-\makeindex[intoc=true, name=modules    , title=\fortran\ modules    , columns=3]
-\makeindex[intoc=true, name=parameters , title=Namelist parameters  , columns=3]
-\makeindex[intoc=true, name=subroutines, title=\fortran\ subroutines           ]
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/indices.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/indices.tex	(revision 14644)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/indices.tex	(revision 14644)
@@ -0,0 +1,28 @@
+%% =================================================================================================
+%% Indices
+%% =================================================================================================
+
+%% Index entries (italic font for files, preformat for code)
+\newcommand{\key}[1]{
+   \index[keys]{       #1@\texttt{\textbf{key\_#1}}} \texttt{\textbf{key\_#1}}
+}             
+\newcommand{\mdl}[1]{
+   \index[modules]{    #1@\textit{#1.F90}          } \textit{#1.F90}
+}
+\newcommand{\nam}[2]{
+   \index[blocks]{     #1@\texttt{\&nam#2}         } \forcode{&nam#1} (\autoref{lst:nam#1})
+}
+\newcommand{\np}[3][]{
+   \index[parameters]{ #3@\texttt{#3}              } \forcode{#2#1}
+}
+\newcommand{\rou}[1]{
+   \index[subroutines]{#1@\texttt{#1}              } \texttt{#1}
+}
+
+\indexsetup{toclevel=section,othercode=\small}
+
+\makeindex[intoc=true,name=blocks     ,title=Namelist blocks      ,columns=3]
+\makeindex[intoc=true,name=keys       ,title=CPP keys                       ]
+\makeindex[intoc=true,name=modules    ,title=\fortran\ modules    ,columns=3]
+\makeindex[intoc=true,name=parameters ,title=Namelist parameters  ,columns=3]
+\makeindex[intoc=true,name=subroutines,title=\fortran\ subroutines          ]
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/info_page.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/info_page.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/info_page.tex	(revision 14644)
@@ -1,12 +1,13 @@
+%% =================================================================================================
+%% Back cover
+%% =================================================================================================
 
-\thispagestyle{plain}
+%% Disclaimer
+%% =================================================================================================
 
-%% ================================================================
-%% Disclaimer
-%% ================================================================
 \subsubsection*{Disclaimer}
 
 Like all components of the modelling framework,
-the \engine\ core engine is developed under the \href{http://www.cecill.info}{CECILL license},
+the \eng\ core engine is developed under the \href{http://www.cecill.info}{CECILL license},
 which is a French adaptation of the GNU GPL (\textbf{G}eneral \textbf{P}ublic \textbf{L}icense).
 Anyone may use it freely for research purposes, and is encouraged to
@@ -20,32 +21,32 @@
 The authors assume no responsibility for problems, errors, or incorrect usage of \NEMO.
 
-%% ================================================================
 %% External resources
-%% ================================================================
+%% =================================================================================================
+
 \subsubsection*{Other resources}
 \label{resources}
 
 Additional information can be found on:
+
 \begin{itemize}
-\item \faWordpress\ the \href{http://www.nemo-ocean.eu}{website} of the project detailing several
-  associated applications and an exhaustive users bibliography
-\item \faCodeFork\ the \href{http://forge.ipsl.jussieu.fr/nemo}{development platform} of
-  the model with the code repository for the shared reference and some main resources
-  (wiki, ticket system, forums, \ldots) \\
-  \faGithub\ the \href{http://github.com/NEMO-ocean/NEMO-examples}
-  {repository of the demonstration cases} for research or training
-\item \faCloudDownload\ the \href{http://zenodo.org/communities/nemo-ocean}{online archive}
-  delivering the publications issued by the consortium (manuals, reports, datasets, \ldots)
-\item \faEnvelope\ two mailing lists:
-  the \href{http://listes.ipsl.fr/sympa/info/nemo-newsletter}{newsletter} for
-  top-down communications from the project
-  (announcements, calls, job opportunities, \ldots)
-  and the \href{http://listes.ipsl.fr/sympa/info/nemo-forge}{forge updates}
-  (commits, tickets and forums)
+   \item \faWordpress\ the \href{http://www.nemo-ocean.eu}{website} of the project detailing
+      several associated applications and an exhaustive users bibliography
+   \item \faCodeFork\ the \href{http://forge.ipsl.jussieu.fr/nemo}{development platform} of
+      the model with the code repository for the shared reference and some main resources
+      (wiki, ticket system, forums, \ldots) \\
+      \faGithub\ the \href{http://github.com/NEMO-ocean/NEMO-examples}
+      {repository of the demonstration cases} for research or training
+   \item \faCloudDownload\ the \href{http://zenodo.org/communities/nemo-ocean}{online archive}
+      delivering the publications issued by the consortium (manuals, reports, datasets, \ldots)
+   \item \faEnvelope\ two mailing lists:
+      the \href{http://listes.ipsl.fr/sympa/info/nemo-newsletter}{newsletter} for
+      top-down communications from the project (announcements, calls, job opportunities, \ldots)
+      and the \href{http://listes.ipsl.fr/sympa/info/nemo-forge}{forge updates}
+      (commits, tickets and forums)
 \end{itemize}
 
-%% ================================================================
 %% Citation
-%% ================================================================
+%% =================================================================================================
+
 \subsubsection*{Citation}
 
@@ -55,22 +56,24 @@
 
 \begin{sloppypar}
-  ``{\bfseries \heading}\ifdef{\subheading}{ -- \subheading}{}'',
-  {\em Scientific Notes of Climate Modelling Center}, \textbf{\ipslnum} --- ISSN 1288-1619,
-  Institut Pierre-Simon Laplace (IPSL),
-  \href{https://doi.org/10.5281/zenodo.\zid}{doi:10.5281/zenodo.\zid}
+   ``{\bfseries \hdg}\ifdef{\shdg}{ -- \shdg}{}'',
+   {\em Scientific Notes of Climate Modelling Center}, \textbf{\ipsl} --- ISSN 1288-1619,
+   Institut Pierre-Simon Laplace (IPSL),
+   \href{https://doi.org/10.5281/zenodo.\zid}{doi:10.5281/zenodo.\zid}
 \end{sloppypar}
 
 \begin{figure}[b]
-  \begin{minipage}[c]{0.7\textwidth}
-    \small
-    \ttfamily{
-      Scientific Notes of Climate Modelling Center \\
-      ISSN 1288-1619                               \\
-      Institut Pierre-Simon Laplace (IPSL)
-    }
-  \end{minipage}
-  \hfill
-  \begin{minipage}[c]{0.25\textwidth}
-    \href{http://www.cmc.ipsl.fr}{\includegraphics[width=\textwidth]{logos/IPSL_master}}
-  \end{minipage}
+
+   \begin{minipage}[c]{0.7\textwidth}
+      \small
+      \ttfamily{
+         Scientific Notes of Climate Modelling Center \\
+         ISSN 1288-1619                               \\
+         Institut Pierre-Simon Laplace (IPSL)
+      }
+   \end{minipage}
+   \hfill %% Don't insert void line between `minipage` envs
+   \begin{minipage}[c]{0.25\textwidth}
+      \href{http://www.cmc.ipsl.fr}{\includegraphics[width=\textwidth]{IPSL_master}}
+   \end{minipage}
+
 \end{figure}
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/latexmk.pl
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/latexmk.pl	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/latexmk.pl	(revision 14644)
@@ -1,13 +1,17 @@
+## Defaults
+#$silent   = 1;
+$pdf_mode = 5;
 
-## Defaults
-$do_cd    = 1;   ## Change to the directory of the main source file
-$silent   = 1;   ## Less verbosity
+## Using relative paths
+$ENV{'openout_any'} = 'a'       ;
+$do_cd              = 1         ;
+$out_dir            = '../build';
 
-## Use of 'build' relative directory
-$ENV{'openout_any'}='a';
-$out_dir = '../build';
-
-## Global option
-set_tex_cmds( '-shell-escape' );
-
-$makeindex = "makeindex %O -s ../../global/index -o $out_dir/%D $out_dir/%S";
+## Custom cmds
+set_tex_cmds('-shell-escape -file-line-error -interaction=nonstopmode');
+#set_tex_cmds('-shell-escape -file-line-error');
+$makeindex = 'makeindex %O -s %R.ist -o %D %S';
+## %D: Destination file (.ind for index)
+## %O: Options
+## %R: Root filename (${model}_manual)
+## %S: Source file      (.idx for index)
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/nemo.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/nemo.tex	(revision 14644)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/nemo.tex	(revision 14644)
@@ -0,0 +1,23 @@
+%% =================================================================================================
+%% Common abstract
+%% =================================================================================================
+
+``Nucleus for European Modelling of the Ocean'' as \NEMO\ is a state-of-the-art modelling framework of
+ocean-related engines for research activities and forecasting services in oceanography and climatology,
+developed in a sustainable way since 2008 by a European consortium of 5 institutes
+(\CMCC{CMCC} | \CNRS{CNRS} | \MOI{Mercator Océan} | \UKMO{Met Office} | \NERC{NERC}).
+It is intended to be a flexible tool for studying the physical and biogeochemical phenomena in
+the ocean circulation, as well as its interactions with the components of the Earth climate system,
+over a wide range of space and time scales.
+
+Concerning the physics, the fundamental engine for the \textcolor{blue}{``blue ocean''} solves
+the primitive equations of the ocean \{thermo\}dynamics.
+It can be supplemented by the \textcolor{gray}{``white ocean''} for sea-ice \{thermo\}dynamics,
+brine inclusions and subgrid-scale thickness variations (\SIcube), and also by
+the \textcolor{green}{``green ocean''} for \{on,off\}line oceanic tracers transport and
+biogeochemical processes (\TOP-\PISCES).
+External alternative models can be used instead of the core engines (\eg\ \CICE\ and \BFM).
+Regarding the numerics, main features include versatile data assimilation interface,
+agile diagnostics generation thanks to \XIOS\ software,
+ocean-atmosphere coupling via the \OASIS\ library, and
+seamless embedded zooms with the \AGRIF\ 2-way nesting package.
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/new_cmds.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/new_cmds.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/new_cmds.tex	(revision 14644)
@@ -1,18 +1,27 @@
-%% Global custom commands: \newcommand{<name>}[<args>][<first argument value>]{<code>}
-%% ==============================================================================
+%% =================================================================================================
+%% Global custom commands
+%% =================================================================================================
 
-%% Same slanted font for NEMO and its core engines
-\newcommand{\NEMO  }{\textsl{NEMO}}
-\newcommand{\OPA   }{\textsl{OPA}}
-\newcommand{\SIcube}{\textsl{SI$^3$}}
-\newcommand{\TOP   }{\textsl{TOP}}
-\newcommand{\PISCES}{\textsl{PISCES}}
+%% \newcommand{<name>}[<args>][<first argument value>]{<code>}
+
+%% Same font for NEMO and its core engines
+\newcommand{\NEMO   }{\textsl{NEMO}}
+\newcommand{\OPA    }{\textsl{OPA}}
+\newcommand{\SIcube }{\textsl{SI$^3$}}
+\newcommand{\TOP    }{\textsl{TOP}}
+\newcommand{\PISCES }{\textsl{PISCES}}
 \newcommand{\NEMOVAR}{\textsl{NEMOVAR}}
 
-%% Links for external components
-\newcommand{\AGRIF}{\href{http://agrif.imag.fr}{AGRIF}}
+%% URL links for consortium institutes and external components
+\newcommand{\CMCC }{\href{http://www.cmcc.it}          }
+\newcommand{\CNRS }{\href{http://www.cnrs.fr}          }
+\newcommand{\MOI  }{\href{http://www.mercator-ocean.fr}}
+\newcommand{\UKMO }{\href{http://www.metoffice.gov.uk} }
+\newcommand{\NERC }{\href{http://nerc.ukri.org}        }
+\newcommand{\AGRIF}{\href{http://agrif.imag.fr                  }{AGRIF}}
+\newcommand{\BFM  }{\href{http://bfm-community.eu               }{BFM}}
 \newcommand{\CICE }{\href{http://github.com/CICE-Consortium/CICE}{CICE}}
-\newcommand{\OASIS}{\href{http://portal.enes.org/oasis}{OASIS}}
-\newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver}{XIOS}}
+\newcommand{\OASIS}{\href{http://portal.enes.org/oasis          }{OASIS}}
+\newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver }{XIOS}}
 
 %% Fortran in small capitals
@@ -22,48 +31,47 @@
 %% Common aliases
 \renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}}
+\newcommand{\eg    }{\ensuremath{e.g.}}
+\newcommand{\ie    }{\ensuremath{i.e.}}
 \newcommand{\zstar }{\ensuremath{z^\star}}
 \newcommand{\sstar }{\ensuremath{s^\star}}
 \newcommand{\ztilde}{\ensuremath{\tilde z}}
 \newcommand{\stilde}{\ensuremath{\tilde s}}
-\newcommand{\ie}{\ensuremath{i.e.}}
-\newcommand{\eg}{\ensuremath{e.g.}}
-
-%% Inline maths
-\newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}}
-\newcommand{\rdt}{\Delta t}
 
 %% Gurvan's comments
 \newcommand{\cmtgm}[1]{}
 
-%% Maths
+%% Maths: reduce equation
+\newcommand{\fractext}[2]{\textstyle\frac{#1}{#2}}
 \newcommand{\lt}{\left}
+\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}}
+\newcommand{\rdt}{\Delta t}
 \newcommand{\rt}{\right}
-\newcommand{\vect}[1]{\ensuremath{ \mathbf{#1} }}
-\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}}
-
-%% Convert chapter/section headings to lowercase
-\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
-\renewcommand{\sectionmark}[1]{\markright{#1}{}}
+\newcommand{\vect}[1][]{\ensuremath{\mathbf{#1}}}
 
 %% Retrieve month name
 \renewcommand{\today}{
-  \ifcase \month\or January\or February\or March\or
-                    April\or   May\or      June\or
-                    July\or    August\or   September\or
-                    October\or November\or December
+  \ifcase \month\or   January\or February\or    March\or    April\or
+                          May\or     June\or     July\or   August\or
+                    September\or  October\or November\or December
   \fi, \number \year
 }
 
-%% Link to orcid profile
-\newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidcolor}\aiOrcidSquare}}
+%% Custom aliases
+\newcommand{\cf}{\ensuremath{C\kern-0.14em f}}
+\newcommand{\rML}[1][i]{\ensuremath{_{\mathrm{ML}\,#1}}}
+\newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}}
+\newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}}
+\newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}}
+\newcommand{\triadt}[5]{\ensuremath{{}_{#1}^{#2}{\tilde{\mathbb{#3}}}_{#4}^{\,#5}}}
+\newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}}
+\newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}}
 
-%% Workaround for \listoffigures
-\DeclareRobustCommand{\triad}[6][]{\ensuremath{ {}_{#2}^{#3} { \mathbb{#4}_{#1} }_{#5}^{\,#6} }}
-
-%% New command for ToC
-\newcommand{\chaptertoc}[1][Table of contents]{%
-  \thispagestyle{empty}
-  \etocsettocstyle{\addsec*{#1}}{}%
-  \localtableofcontents%
+%% New command for ToC (?)
+\newcommand{\chaptertoc}[1][Table of contents]{
+  \etocsettocstyle{\addsec*{#1}}{}
+  \localtableofcontents
   \vfill
 }
+
+%% ORCID links
+\newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidclr}\aiOrcidSquare}}
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/packages.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/packages.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/packages.tex	(revision 14644)
@@ -1,46 +1,46 @@
+%% =================================================================================================
+%% Packages
+%% =================================================================================================
 
-%% LaTeX packages in use
-%% ==============================================================================
+%% Document class
+\usepackage[footsepline=0.25pt,headsepline=0.25pt]{scrlayer-scrpage} %% KOMA-script
 
-%% 'hyperref' pkg is loaded at the end of the preamble for higher compatibility
-
-%% KOMA-script
-\usepackage[footsepline=0.25pt, headsepline=0.25pt]{scrlayer-scrpage}
-
-%% customization (layout, header/footer styles & contents, background)
-\usepackage{draftwatermark}
-\usepackage[margin = 2cm]{geometry}
-\usepackage[pages = some]{background}   %% 'some' for title page
-\usepackage[Bjornstrup]{fncychap}
+%% Customisation (cover page, chapter headings and mark of draft copy)
+\usepackage[margin=2cm]{geometry} %% Why 2cm margin? Load geometry before background!
+\usepackage[pages=some]{background} %% 'some' for title page
+\usepackage[scale=15,color=pink]{draftwatermark}
+\usepackage[Bjornstrup]{fncychap} %% Chapter style
 
 %% Fonts
 \usepackage{fontspec}
-%% Issue with fontawesome pkg: path to FontAwesome.otf has to be hard-coded
-\defaultfontfeatures{
-    Path = /home/nicolas/.local/texlive/2020/texmf-dist/fonts/opentype/public/fontawesome/
-}
-\usepackage{academicons, fontawesome, newtxtext}
+%% Issue with path to 'FontAwesome.otf'
+\defaultfontfeatures{Path=/usr/local/texlive/2020/texmf-dist/fonts/opentype/public/fontawesome/}
+\usepackage{academicons,fontawesome}
 
 %% Formatting
 \usepackage[inline]{enumitem}
-\usepackage{etoc, tabularx, xcolor}
+\usepackage{etoc,tabularx,xcolor}
 
 %% Graphics
-\usepackage{caption, graphicx, grffile}
+\usepackage{caption}
+\graphicspath{{../../../badges/}{../figures/}{../../../logos/}}
 
 %% Labels
-\usepackage{lastpage, natbib}
+\usepackage{lastpage,natbib}
+%\usepackage{natbib,pageslts}
 
-%% Mathematics
-\usepackage{amsmath, amssymb, mathtools}
+%% Mathematics: 'amsmath' is loaded by 'mathtools'
+\usepackage{mathtools,amssymb}
 
 %% Versatility
 \usepackage{subfiles}
 
-%% Configuration
-\graphicspath{ {../../../} {../figures/} }
+%% Source code listings
+\usepackage[cachedir=cache,outputdir=../build,chapter,newfloat]{minted}
+%% chapter? newfloat?
+
+%% Indexing and cross-referencing, loaded at the end for higher compatibility
+\usepackage{hyperref,imakeidx}
 
 %% Missing utmr8a font
 \usepackage{times}
-
-\usepackage{hyperref}   %% links
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/preamble.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/preamble.tex	(revision 14644)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/preamble.tex	(revision 14644)
@@ -0,0 +1,17 @@
+%% =================================================================================================
+%% Preamble
+%% =================================================================================================
+
+\def\ver{trunk}
+
+%% Specific configuration
+\input{../main/settings}
+
+%% Global configuration
+\input{../../global/packages} % First obviously
+\input{../../global/styles} % Color definitions
+\input{../../global/highlighting}
+\input{../../global/indices}
+\input{../../global/new_cmds}
+%\input{../../global/todonotes}
+%\input{../../global/glossaries}
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/prologue.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/prologue.tex	(revision 14197)
+++ 	(revision )
@@ -1,25 +1,0 @@
-
-%% Specific configuration
-\input{../main/settings}
-
-%% Global configuration
-\input{../../global/packages}
-\input{../../global/highlighting}
-\input{../../global/index}
-\input{../../global/styles}
-\input{../../global/new_cmds}
-%\input{../../global/todonotes}
-
-%% Load hyperref at the end of the preamble to make it work with other pkgs
-\usepackage{hyperref}   %% links
-\hypersetup{
-  colorlinks,
-  citecolor = manualcolor, linkcolor = manualcolor, urlcolor = manualcolor,
-  final   %% Links even in draft mode
-}
-
-%% `\autoref` uncapitalization
-\renewcommand{\appendixautorefname}{appendix}
-\renewcommand{\equationautorefname}{equation}
-\renewcommand{\figureautorefname}{figure}
-\renewcommand{\tableautorefname}{table}
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/styles.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/styles.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/styles.tex	(revision 14644)
@@ -1,23 +1,52 @@
-
+%% =================================================================================================
 %% Styles
-%% ==============================================================================
+%% =================================================================================================
 
 %% Colors
-\setmanualcolor
-\colorlet{manualcolorshaded}{manualcolor!60}
-\definecolor{orcidcolor}{HTML}{A6CE39}
+\definecolor{orcidclr}{HTML}{A6CE39}
+\definecolor{manclr}{cmyk}{\clr} %% \clr defined for each manual from local settings.tex
+\colorlet{manclrshd}{manclr!60} %% Derived color for chapter heading, see below
+
+%% Cover page
+\backgroundsetup{
+   firstpage=true,scale=1,angle=0,opacity=1,
+   contents ={
+      \begin{tikzpicture}[remember picture,overlay]
+         \path[fill=manclr] (-0.5\paperwidth,7) rectangle (0.5\paperwidth,10);
+      \end{tikzpicture}
+    }
+}
 
 %% Page layout
-\pagestyle{scrheadings}
+%\pagestyle{scrheadings}
+%\renewcommand{\chapterpagestyle}{empty}
+\renewcommand{\chaptermark}[1]{\markboth{ #1}{}} %% Convert mark to lowercase
+\renewcommand{\sectionmark}[1]{\markright{#1}{}} %%    "     ""  ""     "  
+\ohead{} %% Clear default headings
+\lohead{Chap. \thechapter\  \leftmark}
+\rehead{Sect. \thesection\ \rightmark}
+\ifoot{Page \thepage\ of \pageref*{LastPage}}
+%\ifoot[\pagemark]{Page \thepage\ of \lastpageref*{pagesLTS.arabic}}
+\ofoot{\eng\ Reference Manual}
 \addtokomafont{pagehead}{  \sffamily              }
 \addtokomafont{pagefoot}{  \sffamily \footnotesize}
 \addtokomafont{pagenumber}{\sffamily \slshape     }
-\addtokomafont{chapter}{\color{white}}
-\ohead{} \ofoot{}   %% Clear defaults
+%\addtokomafont{chapter}{\color{white}}
 
-%% Caption
-\captionsetup{font = footnotesize, justification = justified}
+%% Cross-referencing
+\hypersetup{
+   pdftitle=\hdg,pdfauthor=Gurvan Madec and NEMO System Team,
+   pdfsubject=Reference manual of NEMO modelling framework,pdfkeywords=ocean circulation modelling,
+   colorlinks,allcolors=manclr
+}
+\renewcommand{\appendixautorefname}{appendix}          %% `\autoref` uncapitalization
+\renewcommand{\equationautorefname}{equation}          %%     ""            ""
+\renewcommand{\figureautorefname  }{figure}            %%     ""            ""
+\renewcommand{\listingname        }{namelist}          %%     ""            ""
+\renewcommand{\listlistingname    }{List of Namelists} %%     ""            ""
+\renewcommand{\tableautorefname   }{table}             %%     ""            ""
 
-%% Footnote
+%% Misc. (caption and footnote)
+\captionsetup{font=footnotesize,justification=justified}
 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
 
@@ -28,58 +57,33 @@
 \renewcommand{\bibpostamble}{  \end{multicols}   }
 
-%% Catcodes
+%% Catcodes (between `\makeatletter` and `\makeatother`)
 \makeatletter
 
-%% Prevent error with tikz and namelist inclusion
-\global\let\tikz@ensure@dollar@catcode=\relax
-
-%% First page
-\backgroundsetup{
-  firstpage = true,
-  scale = 1, angle = 0, opacity = 1,
-  contents = {
-    \begin{tikzpicture}[remember picture, overlay]
-      \path [fill = manualcolor] (-0.5\paperwidth, 7) rectangle (0.5\paperwidth, 10);
-    \end{tikzpicture}
-  }
+%% Apply manual color for chap. headings (original snippets from fncychap.sty)
+%% !!! Let trailing percent sign to avoid space insertion
+\renewcommand{\DOCH}{% %% Upper box with chapter number
+   \settowidth{\py}{\CNoV\thechapter}%
+   \addtolength{\py}{-10pt}% %% Amount of space by which the number is shifted right
+   \fboxsep=0pt%
+   \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
+   \kern-\py\raise20pt%
+   \hbox{\color{manclrshd}\CNoV\thechapter}\\
+}
+\renewcommand{\DOTI}[1]{% %% Lower box with chapter title
+   \nointerlineskip\raggedright%
+   \fboxsep=\myhi%
+   \vskip-1ex%
+   \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
+   \vskip 40\p@%
+}
+\renewcommand{\DOTIS}[1]{% %% Box for unumbered chapter
+   \fboxsep=0pt%
+   \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\
+   \nointerlineskip\raggedright%
+   \fboxsep=\myhi%
+   \vskip-1ex% %% Remove white 1pt line
+   \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
+   \vskip 40\p@%
 }
 
-%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty
-\renewcommand{\DOCH}{%
-  \settowidth{\py}{\CNoV\thechapter}
-  \addtolength{\py}{-10pt}      % Amount of space by which the
-%                                  % number is shifted right
-  \fboxsep=0pt%
-  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
-  \kern-\py\raise20pt%
-  \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\%
-}
-\renewcommand{\DOTI}[1]{%
-  \nointerlineskip\raggedright%
-  \fboxsep=\myhi%
-  \vskip-1ex%
-  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
-  \vskip 40\p@%
-}
-\renewcommand{\DOTIS}[1]{%
-  \fboxsep=0pt
-  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%
-  \nointerlineskip\raggedright%
-  \fboxsep=\myhi%
-  \vskip-1ex% Remove white 1pt line
-  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
-  \vskip 40\p@%
-}
-
-%% Temporary fix
-\def\set@curr@file#1{%
-  \begingroup
-    \escapechar\m@ne
-    \xdef\@curr@file{\expandafter\string\csname #1\endcsname}%
-  \endgroup
-}
-\def\quote@name#1{"\quote@@name#1\@gobble""}
-\def\quote@@name#1"{#1\quote@@name}
-\def\unquote@name#1{\quote@@name#1\@gobble"}
-
 \makeatother
Index: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/todonotes.tex
===================================================================
--- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/todonotes.tex	(revision 14197)
+++ NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/todonotes.tex	(revision 14644)
@@ -1,24 +1,30 @@
-\usepackage[]{todonotes}
+%% =================================================================================================
+%% Notes
+%% =================================================================================================
+
+\usepackage{todonotes}
 
 \newcounter{ubcomment}
-\newcommand{\ubcomment}[2][]{%
-\refstepcounter{ubcomment}%
-{%
-\todo[linecolor=black,backgroundcolor={green!40!},size=\footnotesize]{%
-\textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}%
-}}
-\newcommand{\ubcommentinline}[2][]{%
-\refstepcounter{ubcomment}%
-{%
-\todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize]{%
-\textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}%
+
+\newcommand{\ubcomment         }[2][]{
+\refstepcounter{ubcomment}
+{
+\todo[linecolor=black,       backgroundcolor={green!40!},size=\footnotesize ]{
+\textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}
 }}
 
-\newcommand{\ubcommentmultiline}[2]{%
-\refstepcounter{ubcomment}%
-{%
-\todo[linecolor=black,inline,caption={\textbf{{Fixme: UB}
-    [\theubcomment] #1}} ,backgroundcolor={green!40!},size=\footnotesize]{%
-\textbf{Fixme: UB [\theubcomment]:}~#2}%
+\newcommand{\ubcommentinline   }[2][]{
+\refstepcounter{ubcomment}
+{
+\todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize ]{
+\textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}
+}}
+
+\newcommand{\ubcommentmultiline}[2]{
+\refstepcounter{ubcomment}
+{
+\todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize,
+      caption={\textbf{{Fixme: UB} [\theubcomment] #1}}                     ]{
+\textbf{Fixme: UB [              \theubcomment]:}~#2}
 }}
 
