Changeset 14644 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global
- Timestamp:
- 2021-03-26T15:33:49+01:00 (3 years ago)
- Location:
- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final
- Files:
-
- 4 added
- 2 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final
- Property svn:externals
-
old new 9 9 10 10 # SETTE 11 ^/utils/CI/sette _wave@13990sette11 ^/utils/CI/sette@14244 sette
-
- Property svn:externals
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global
-
Property
svn:ignore
set to
*.aux
*.bbl
*.blg
*.fdb*
*.fls
*.idx
*.ilg
*.ind
*.lo*
*.out
*.toc
*.xdv
cache*
-
Property
svn:ignore
set to
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/document.tex
r14113 r14644 1 2 1 %% ================================================================================================= 3 %% Template structure for reference manuals2 %% Manual structure 4 3 %% ================================================================================================= 5 4 6 %% NEMO release version 7 \def \version{trunk} 8 9 %% Preamble 5 %% Preamble: global configuration 10 6 %% ================================================================================================= 11 7 12 %% Document layout 13 \documentclass[fontsize = 10pt, twoside, abstract]{scrreprt} 8 %% Layout 9 \documentclass[fontsize=10pt,twoside,abstract,draft]{scrreprt} 10 %\documentclass[fontsize=10pt,twoside,abstract ]{scrreprt} 14 11 15 %% Load manual configuration16 \input{../../global/pr ologue}12 %% Overall configuration 13 \input{../../global/preamble} 17 14 18 %% End of common preamble between main and sub-files 19 %% Override custom cmds for full manual compilation 20 \newcommand{\subinc}[1]{#1} 21 \newcommand{\subexc}[1]{} 15 %% Special cmds around to {in,ex}clude content only in subfile 16 \newcommand{\subinc}[1]{#1} 17 \newcommand{\subexc}[1]{ } 22 18 23 19 \begin{document} 24 20 25 \renewcommand{\subinc}[1]{ }21 \renewcommand{\subinc}[1]{ } 26 22 \renewcommand{\subexc}[1]{#1} 27 23 28 29 %% Frontmatter24 %% Frontmatter: covers 25 %% ({sub}title, DOI, authors, abstract and color theme are specific to each manual) 30 26 %% ================================================================================================= 31 27 28 %\frontmatter %% Not recognized in 'scrreprt' document class 32 29 \pagenumbering{gobble} %% Disable page numbering temporarily 30 \pagestyle{empty} 33 31 34 %% Title page35 32 \input{../../global/frontpage} 36 37 %% Footer for introductory parts (no header by cleaning default)38 \ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark}39 40 %% Information page (2nd page)41 33 \input{../../global/info_page} 42 34 35 \cleardoublepage 36 37 \pagenumbering{Roman} %% Reactivate page numbering (uppercase roman numbers) 38 \pagestyle{plain} 39 %\lastpageref{pagesLTS.0} 40 41 \tableofcontents 43 42 \listoffigures 44 43 \listoflistings 45 44 \listoftables 45 %\listoftodos 46 %\lastpageref{pagesLTS.Roman} 46 47 47 \clear page48 \cleardoublepage 48 49 49 \pagenumbering{roman} 50 \ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark} 50 %% Mainmatter: toc, lists, introduction and primary chapters 51 %% ================================================================================================= 52 53 %\mainmatter %% Not recognized in 'scrreprt' document class 54 \pagenumbering{arabic} %% Standard page numbering 55 \pagestyle{plain} 51 56 52 57 \input{introduction} 53 58 54 %% Table of Contents 55 \tableofcontents 59 \cleardoublepage 56 60 57 \clearpage 61 \pagestyle{scrheadings} 62 \renewcommand{\chapterpagestyle}{empty} 58 63 64 \input{chapters} 59 65 60 %% Mainmatter66 %% Appendix: subordinate chapters 61 67 %% ================================================================================================= 62 68 63 %% Headings for document body 64 \pagenumbering{arabic} 65 \lohead{Chap.\ \thechapter\ \leftmark} \rehead{Sect.\ \thesection\ \rightmark} 66 \ifoot[]{Page\ \pagemark\ of \pageref*{LastPage}} 69 \appendix %% Chapter numbering with letters by now 70 \lohead{Apdx \thechapter\ \leftmark} 67 71 68 \in clude{chapters}72 \input{appendices} 69 73 74 \input{../../global/coding_rules} %% Add coding rules on every manual 70 75 71 %% Appendix 76 %\lastpageref{pagesLTS.arabic} 77 \cleardoublepage 78 79 %% Backmatter: bibliography, glossaries and indices 72 80 %% ================================================================================================= 73 81 74 \appendix %% Chapter numbering with letters by now 75 \ lohead{Apdx\ \thechapter\ \leftmark}76 \ include{appendices}82 %\backmatter %% Not recognized in 'scrreprt' document class 83 \pagenumbering{roman} %% Lowercase roman numbers 84 \pagestyle{plain} 77 85 78 %% Append coding rules for every manual79 \input{../../global/coding_rules}80 81 82 %% Backmatter83 %% =================================================================================================84 85 %% Bibliography and indexes86 86 \input{../../global/epilogue} 87 87 88 %\lastpageref{pagesLTS.roman} 89 88 90 \end{document} -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/epilogue.tex
r14113 r14644 1 2 \clearpage 1 %% ================================================================================================= 2 %% Backmatter 3 %% ================================================================================================= 3 4 4 5 %% Bibliography 6 %% ================================================================================================= 7 5 8 \phantomsection 6 9 \addcontentsline{toc}{chapter}{Bibliography} 7 \lohead{Bibliography} \rehead{Bibliography} 10 \lohead{Bibliography} 11 \rehead{Bibliography} 8 12 \bibliography{../main/bibliography} 9 13 10 14 \clearpage 11 15 12 %% Indexes 16 %% Indices 17 %% ================================================================================================= 18 13 19 \phantomsection 14 \addcontentsline{toc}{chapter}{Indexes} 15 \lohead{Indexes} \rehead{Indexes} 20 \addcontentsline{toc}{chapter}{Indices} 21 \lohead{Indices} 22 \rehead{Indices} 16 23 \printindex[blocks] 17 24 \printindex[keys] … … 19 26 \printindex[parameters] 20 27 \printindex[subroutines] 28 29 \clearpage 30 31 %% Glossary 32 %% ================================================================================================= 33 34 %\phantomsection 35 %\addcontentsline{toc}{chapter}{Glossary} 36 %\lohead{Glossary}\rehead{Glossary} 37 %\printglossaries -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/frontpage.tex
r14113 r14644 1 %% ================================================================================================= 2 %% Front cover 3 %% ================================================================================================= 1 4 2 5 \begin{titlepage} 3 % \newgeometry{hmargin = 1.5cm, vmargin =3cm}4 \setlength{\parindent}{0pt}6 % \newgeometry{hmargin=1.5cm,vmargin=3cm} 7 \setlength{\parindent}{0pt} 5 8 6 \begin{center} 7 \begin{minipage}{0.3\textwidth} 8 \includegraphics[height=1.5cm]{logos/NEMO_grey} 9 \end{minipage}\begin{minipage}{0.6\textwidth} 10 \begin{center} 11 \Large\slshape 12 \textbf{N}ucleus for \textbf{E}uropean \textbf{M}odelling of the \textbf{O}cean \\ 9 \begin{center} 10 11 \begin{minipage}{0.3\textwidth} 12 \includegraphics[height=1.5cm]{NEMO_grey} 13 \end{minipage} %% Don't insert void line between `minipage` envs 14 \begin{minipage}{0.6\textwidth} 15 \begin{center} 16 \Large\slshape 17 \textbf{N}ucleus for \textbf{E}uropean \textbf{M}odelling of the \textbf{O}cean \\ 18 \medskip 19 \hyperref[resources]{ 20 \faWordpress \hspace{1cm} \faCodeFork \hspace{1cm} 21 \faGithub \hspace{1cm} \faCloudDownload \hspace{1cm} \faEnvelope 22 } 23 \end{center} 24 \end{minipage} 25 26 \end{center} 27 28 \spcup 29 \textcolor{white}{\fontsize{0.8cm}{0.8cm}\selectfont\textbf{\hdg}} 30 \ifdef{\shdg}{\medskip\par\textcolor{white}{\Huge\shdg}}{} 31 \spcdn 32 33 \begin{center} 34 \LARGE Version {\ver} - {\today} \\ 13 35 \medskip 14 \hyperref[resources]{\textcolor{black}{ 15 \faWordpress \hspace{0.75cm} \faCodeFork \hspace{0.75cm} 16 \faGithub \hspace{0.75cm} \faCloudDownload \hspace{0.75cm} \faEnvelope 17 } 18 } 19 \end{center} 20 \end{minipage} 21 \end{center} 36 \href{http://doi.org/10.5281/zenodo.\zid}{\includegraphics{zenodo.\zid}} 37 \end{center} 22 38 23 \spacetop 24 \textcolor{white}{\fontsize{0.8cm}{0.8cm}\selectfont\textbf{\heading}} 25 \ifdef{\subheading}{ 26 \medskip 27 \par 28 \textcolor{white}{\Huge \subheading} 29 }{} 30 \spacedown 39 \vfill 31 40 32 \begin{center} 33 \LARGE Version \version\ -\ \today \\ 34 \medskip 35 \href{http://doi.org/10.5281/zenodo.\zid}{ \includegraphics{badges/zenodo.\zid} } 36 \end{center} 41 \begin{minipage}{\autwd} 42 \raggedleft\input{authors} 43 \end{minipage} 44 \hspace{15pt} %% Don't insert void line between `minipage` envs 45 \begin{minipage}{0.02\linewidth} 46 \rule{1pt}{\lnlg} 47 \end{minipage} 48 \hspace{ 5pt} %% " "" "" "" " "" "" 49 \begin{minipage}{\abswd} 50 \begin{abstract} 51 \input{abstract} 52 \end{abstract} 53 \end{minipage} 37 54 38 \vfill55 \vfill 39 56 40 \begin{minipage}{\authorswidth} 41 \raggedleft 42 \input{authors} 43 \end{minipage}\hspace{15pt}\begin{minipage}{0.02\linewidth} 44 \rule{1pt}{\rulelenght} 45 \end{minipage}\hspace{ 5pt}\begin{minipage}{\abstractwidth} 46 \begin{abstract} 47 \input{abstract} 48 \end{abstract} 49 \end{minipage} 50 51 \vfill 52 53 \begin{center} 54 \Large 55 \href{http://www.cmcc.it }{ \includegraphics[height=1cm]{logos/CMCC} } \hspace{0.25cm} 56 \href{http://www.cnrs.fr }{ \includegraphics[height=1cm]{logos/CNRS} } \hspace{0.25cm} 57 \href{http://www.mercator-ocean.fr}{ \includegraphics[height=1cm]{logos/MOI} } \hspace{0.25cm} 58 \href{http://www.metoffice.gov.uk }{ \includegraphics[height=1cm]{logos/UKMO} } \hspace{0.25cm} 59 \href{http://nerc.ukri.org }{ \includegraphics[height=1cm]{logos/NERC} } \\ 60 \medskip 61 \slshape 62 {C}ommunity \hspace{1.5em} {O}cean \hspace{1.5em} {M}odel \\ 63 \end{center} 57 \begin{center} 58 \Large 59 \CMCC{\includegraphics[height=1cm]{CMCC}} \hspace{0.25cm} 60 \CNRS{\includegraphics[height=1cm]{CNRS}} \hspace{0.25cm} 61 \MOI{\includegraphics[height=1cm]{MOI} } \hspace{0.25cm} 62 \UKMO{\includegraphics[height=1cm]{UKMO}} \hspace{0.25cm} 63 \NERC{\includegraphics[height=1cm]{NERC}} \\ 64 \medskip 65 \slshape 66 {C}ommunity \hspace{1.5em} {O}cean \hspace{1.5em} {M}odel 67 \end{center} 64 68 65 69 \end{titlepage} 66 70 67 \restoregeometry71 %\restoregeometry -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/highlighting.tex
r14113 r14644 1 %% ================================================================================================= 1 2 %% Syntax highlighting configuration 2 %% ============================================================================== 3 4 \usepackage[outputdir=../build, chapter, newfloat]{minted} 3 %% ================================================================================================= 5 4 6 5 %% Global highlighting style 7 \definecolor{bg}{HTML}{f8f8f8} 6 \definecolor{bg}{HTML}{f8f8f8} %% ? 8 7 \usemintedstyle{emacs} 9 \setminted{bgcolor=bg, fontsize=\scriptsize, breaklines} 10 \setminted[xml]{style=borland} %% Specific per language 8 \setminted{bgcolor=bg,fontsize=\scriptsize,breaklines} 9 \setminted[xml]{style=borland} %% Specific style for XML 10 11 %% Inline 12 \newmintinline[forcode]{fortran}{bgcolor=,fontsize=auto} %% \forcode{...} 13 \newmintinline[xmlcode]{xml}{ bgcolor=,fontsize=auto} %% \xmlcode{...} 14 \newmintinline[snippet]{console}{bgcolor=,fontsize=auto} %% \snippet{...} 11 15 12 16 %% Oneliner 13 \newmint[forline]{fortran}{} 14 \newmint[xmlline]{xml }{}% \xmlline|...|15 \newmint[cmd]{ console}{}% \cmd|...|17 \newmint[forline]{fortran}{} %% \forline|...| 18 \newmint[xmlline]{xml }{} %% \xmlline|...| 19 \newmint[cmd]{ console}{} %% \cmd|...| 16 20 17 21 %% Multi-lines 18 \newminted[forlines]{fortran}{} 19 \newminted[xmllines]{xml }{}% \begin{xmllines}20 \newminted[cmds]{ console}{}% \begin{cmds}21 \newminted[clines]{ c}{}% \begin{clines}22 \newminted[forlines]{fortran}{} %% \begin{forlines} 23 \newminted[xmllines]{xml }{} %% \begin{xmllines} 24 \newminted[cmds]{ console}{} %% \begin{cmds} 25 \newminted[clines]{ c }{} %% \begin{clines} 22 26 23 %% File 27 %% File (namelist or module) 24 28 \newmintedfile[forfile]{fortran}{} 25 26 %% Inline27 \newmintinline[forcode]{fortran}{bgcolor=, fontsize=auto} % \forcode{...}28 \newmintinline[xmlcode]{xml}{ bgcolor=, fontsize=auto} % \xmlcode{...}29 \newmintinline[snippet]{console}{bgcolor=, fontsize=auto} % \snippet{...}30 29 31 30 %% Namelists inclusion 32 31 \newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} 32 -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/info_page.tex
r14113 r14644 1 %% ================================================================================================= 2 %% Back cover 3 %% ================================================================================================= 1 4 2 \thispagestyle{plain} 5 %% Disclaimer 6 %% ================================================================================================= 3 7 4 %% ================================================================5 %% Disclaimer6 %% ================================================================7 8 \subsubsection*{Disclaimer} 8 9 9 10 Like all components of the modelling framework, 10 the \eng ine\ core engine is developed under the \href{http://www.cecill.info}{CECILL license},11 the \eng\ core engine is developed under the \href{http://www.cecill.info}{CECILL license}, 11 12 which is a French adaptation of the GNU GPL (\textbf{G}eneral \textbf{P}ublic \textbf{L}icense). 12 13 Anyone may use it freely for research purposes, and is encouraged to … … 20 21 The authors assume no responsibility for problems, errors, or incorrect usage of \NEMO. 21 22 22 %% ================================================================23 23 %% External resources 24 %% ================================================================ 24 %% ================================================================================================= 25 25 26 \subsubsection*{Other resources} 26 27 \label{resources} 27 28 28 29 Additional information can be found on: 30 29 31 \begin{itemize} 30 \item \faWordpress\ the \href{http://www.nemo-ocean.eu}{website} of the project detailing several 31 associated applications and an exhaustive users bibliography 32 \item \faCodeFork\ the \href{http://forge.ipsl.jussieu.fr/nemo}{development platform} of 33 the model with the code repository for the shared reference and some main resources 34 (wiki, ticket system, forums, \ldots) \\ 35 \faGithub\ the \href{http://github.com/NEMO-ocean/NEMO-examples} 36 {repository of the demonstration cases} for research or training 37 \item \faCloudDownload\ the \href{http://zenodo.org/communities/nemo-ocean}{online archive} 38 delivering the publications issued by the consortium (manuals, reports, datasets, \ldots) 39 \item \faEnvelope\ two mailing lists: 40 the \href{http://listes.ipsl.fr/sympa/info/nemo-newsletter}{newsletter} for 41 top-down communications from the project 42 (announcements, calls, job opportunities, \ldots) 43 and the \href{http://listes.ipsl.fr/sympa/info/nemo-forge}{forge updates} 44 (commits, tickets and forums) 32 \item \faWordpress\ the \href{http://www.nemo-ocean.eu}{website} of the project detailing 33 several associated applications and an exhaustive users bibliography 34 \item \faCodeFork\ the \href{http://forge.ipsl.jussieu.fr/nemo}{development platform} of 35 the model with the code repository for the shared reference and some main resources 36 (wiki, ticket system, forums, \ldots) \\ 37 \faGithub\ the \href{http://github.com/NEMO-ocean/NEMO-examples} 38 {repository of the demonstration cases} for research or training 39 \item \faCloudDownload\ the \href{http://zenodo.org/communities/nemo-ocean}{online archive} 40 delivering the publications issued by the consortium (manuals, reports, datasets, \ldots) 41 \item \faEnvelope\ two mailing lists: 42 the \href{http://listes.ipsl.fr/sympa/info/nemo-newsletter}{newsletter} for 43 top-down communications from the project (announcements, calls, job opportunities, \ldots) 44 and the \href{http://listes.ipsl.fr/sympa/info/nemo-forge}{forge updates} 45 (commits, tickets and forums) 45 46 \end{itemize} 46 47 47 %% ================================================================48 48 %% Citation 49 %% ================================================================ 49 %% ================================================================================================= 50 50 51 \subsubsection*{Citation} 51 52 … … 55 56 56 57 \begin{sloppypar} 57 ``{\bfseries \heading}\ifdef{\subheading}{ -- \subheading}{}'',58 {\em Scientific Notes of Climate Modelling Center}, \textbf{\ipslnum} --- ISSN 1288-1619,59 Institut Pierre-Simon Laplace (IPSL),60 \href{https://doi.org/10.5281/zenodo.\zid}{doi:10.5281/zenodo.\zid}58 ``{\bfseries \hdg}\ifdef{\shdg}{ -- \shdg}{}'', 59 {\em Scientific Notes of Climate Modelling Center}, \textbf{\ipsl} --- ISSN 1288-1619, 60 Institut Pierre-Simon Laplace (IPSL), 61 \href{https://doi.org/10.5281/zenodo.\zid}{doi:10.5281/zenodo.\zid} 61 62 \end{sloppypar} 62 63 63 64 \begin{figure}[b] 64 \begin{minipage}[c]{0.7\textwidth} 65 \small 66 \ttfamily{ 67 Scientific Notes of Climate Modelling Center \\ 68 ISSN 1288-1619 \\ 69 Institut Pierre-Simon Laplace (IPSL) 70 } 71 \end{minipage} 72 \hfill 73 \begin{minipage}[c]{0.25\textwidth} 74 \href{http://www.cmc.ipsl.fr}{\includegraphics[width=\textwidth]{logos/IPSL_master}} 75 \end{minipage} 65 66 \begin{minipage}[c]{0.7\textwidth} 67 \small 68 \ttfamily{ 69 Scientific Notes of Climate Modelling Center \\ 70 ISSN 1288-1619 \\ 71 Institut Pierre-Simon Laplace (IPSL) 72 } 73 \end{minipage} 74 \hfill %% Don't insert void line between `minipage` envs 75 \begin{minipage}[c]{0.25\textwidth} 76 \href{http://www.cmc.ipsl.fr}{\includegraphics[width=\textwidth]{IPSL_master}} 77 \end{minipage} 78 76 79 \end{figure} -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/latexmk.pl
r14113 r14644 1 ## Defaults 2 #$silent = 1; 3 $pdf_mode = 5; 1 4 2 ## Defaults 3 $do_cd = 1; ## Change to the directory of the main source file 4 $silent = 1; ## Less verbosity 5 ## Using relative paths 6 $ENV{'openout_any'} = 'a' ; 7 $do_cd = 1 ; 8 $out_dir = '../build'; 5 9 6 ## Use of 'build' relative directory7 $ENV{'openout_any'}='a';8 $out_dir = '../build';9 10 ## Global option11 set_tex_cmds( '-shell-escape' ); 12 13 $makeindex = "makeindex %O -s ../../global/index -o $out_dir/%D $out_dir/%S"; 10 ## Custom cmds 11 set_tex_cmds('-shell-escape -file-line-error -interaction=nonstopmode'); 12 #set_tex_cmds('-shell-escape -file-line-error'); 13 $makeindex = 'makeindex %O -s %R.ist -o %D %S'; 14 ## %D: Destination file (.ind for index) 15 ## %O: Options 16 ## %R: Root filename (${model}_manual) 17 ## %S: Source file (.idx for index) -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/new_cmds.tex
r14113 r14644 1 %% Global custom commands: \newcommand{<name>}[<args>][<first argument value>]{<code>} 2 %% ============================================================================== 1 %% ================================================================================================= 2 %% Global custom commands 3 %% ================================================================================================= 3 4 4 %% Same slanted font for NEMO and its core engines 5 \newcommand{\NEMO }{\textsl{NEMO}} 6 \newcommand{\OPA }{\textsl{OPA}} 7 \newcommand{\SIcube}{\textsl{SI$^3$}} 8 \newcommand{\TOP }{\textsl{TOP}} 9 \newcommand{\PISCES}{\textsl{PISCES}} 5 %% \newcommand{<name>}[<args>][<first argument value>]{<code>} 6 7 %% Same font for NEMO and its core engines 8 \newcommand{\NEMO }{\textsl{NEMO}} 9 \newcommand{\OPA }{\textsl{OPA}} 10 \newcommand{\SIcube }{\textsl{SI$^3$}} 11 \newcommand{\TOP }{\textsl{TOP}} 12 \newcommand{\PISCES }{\textsl{PISCES}} 10 13 \newcommand{\NEMOVAR}{\textsl{NEMOVAR}} 11 14 12 %% Links for external components 13 \newcommand{\AGRIF}{\href{http://agrif.imag.fr}{AGRIF}} 15 %% URL links for consortium institutes and external components 16 \newcommand{\CMCC }{\href{http://www.cmcc.it} } 17 \newcommand{\CNRS }{\href{http://www.cnrs.fr} } 18 \newcommand{\MOI }{\href{http://www.mercator-ocean.fr}} 19 \newcommand{\UKMO }{\href{http://www.metoffice.gov.uk} } 20 \newcommand{\NERC }{\href{http://nerc.ukri.org} } 21 \newcommand{\AGRIF}{\href{http://agrif.imag.fr }{AGRIF}} 22 \newcommand{\BFM }{\href{http://bfm-community.eu }{BFM}} 14 23 \newcommand{\CICE }{\href{http://github.com/CICE-Consortium/CICE}{CICE}} 15 \newcommand{\OASIS}{\href{http://portal.enes.org/oasis }{OASIS}}16 \newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver }{XIOS}}24 \newcommand{\OASIS}{\href{http://portal.enes.org/oasis }{OASIS}} 25 \newcommand{\XIOS }{\href{http://forge.ipsl.jussieu.fr/ioserver }{XIOS}} 17 26 18 27 %% Fortran in small capitals … … 22 31 %% Common aliases 23 32 \renewcommand{\deg}[1][]{\ensuremath{^{\circ}#1}} 33 \newcommand{\eg }{\ensuremath{e.g.}} 34 \newcommand{\ie }{\ensuremath{i.e.}} 24 35 \newcommand{\zstar }{\ensuremath{z^\star}} 25 36 \newcommand{\sstar }{\ensuremath{s^\star}} 26 37 \newcommand{\ztilde}{\ensuremath{\tilde z}} 27 38 \newcommand{\stilde}{\ensuremath{\tilde s}} 28 \newcommand{\ie}{\ensuremath{i.e.}}29 \newcommand{\eg}{\ensuremath{e.g.}}30 31 %% Inline maths32 \newcommand{\fractext}[2]{\textstyle \frac{#1}{#2}}33 \newcommand{\rdt}{\Delta t}34 39 35 40 %% Gurvan's comments 36 41 \newcommand{\cmtgm}[1]{} 37 42 38 %% Maths 43 %% Maths: reduce equation 44 \newcommand{\fractext}[2]{\textstyle\frac{#1}{#2}} 39 45 \newcommand{\lt}{\left} 46 \newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} 47 \newcommand{\rdt}{\Delta t} 40 48 \newcommand{\rt}{\right} 41 \newcommand{\vect}[1]{\ensuremath{ \mathbf{#1} }} 42 \newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} 43 44 %% Convert chapter/section headings to lowercase 45 \renewcommand{\chaptermark}[1]{\markboth{#1}{}} 46 \renewcommand{\sectionmark}[1]{\markright{#1}{}} 49 \newcommand{\vect}[1][]{\ensuremath{\mathbf{#1}}} 47 50 48 51 %% Retrieve month name 49 52 \renewcommand{\today}{ 50 \ifcase \month\or January\or February\or March\or 51 April\or May\or June\or 52 July\or August\or September\or 53 October\or November\or December 53 \ifcase \month\or January\or February\or March\or April\or 54 May\or June\or July\or August\or 55 September\or October\or November\or December 54 56 \fi, \number \year 55 57 } 56 58 57 %% Link to orcid profile 58 \newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidcolor}\aiOrcidSquare}} 59 %% Custom aliases 60 \newcommand{\cf}{\ensuremath{C\kern-0.14em f}} 61 \newcommand{\rML}[1][i]{\ensuremath{_{\mathrm{ML}\,#1}}} 62 \newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}} 63 \newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}} 64 \newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}} 65 \newcommand{\triadt}[5]{\ensuremath{{}_{#1}^{#2}{\tilde{\mathbb{#3}}}_{#4}^{\,#5}}} 66 \newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}} 67 \newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}} 59 68 60 %% Workaround for \listoffigures 61 \DeclareRobustCommand{\triad}[6][]{\ensuremath{ {}_{#2}^{#3} { \mathbb{#4}_{#1} }_{#5}^{\,#6} }} 62 63 %% New command for ToC 64 \newcommand{\chaptertoc}[1][Table of contents]{% 65 \thispagestyle{empty} 66 \etocsettocstyle{\addsec*{#1}}{}% 67 \localtableofcontents% 69 %% New command for ToC (?) 70 \newcommand{\chaptertoc}[1][Table of contents]{ 71 \etocsettocstyle{\addsec*{#1}}{} 72 \localtableofcontents 68 73 \vfill 69 74 } 75 76 %% ORCID links 77 \newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidclr}\aiOrcidSquare}} -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/packages.tex
r14113 r14644 1 %% ================================================================================================= 2 %% Packages 3 %% ================================================================================================= 1 4 2 %% LaTeX packages in use3 %% ============================================================================== 5 %% Document class 6 \usepackage[footsepline=0.25pt,headsepline=0.25pt]{scrlayer-scrpage} %% KOMA-script 4 7 5 %% 'hyperref' pkg is loaded at the end of the preamble for higher compatibility 6 7 %% KOMA-script 8 \usepackage[footsepline=0.25pt, headsepline=0.25pt]{scrlayer-scrpage} 9 10 %% customization (layout, header/footer styles & contents, background) 11 \usepackage{draftwatermark} 12 \usepackage[margin = 2cm]{geometry} 13 \usepackage[pages = some]{background} %% 'some' for title page 14 \usepackage[Bjornstrup]{fncychap} 8 %% Customisation (cover page, chapter headings and mark of draft copy) 9 \usepackage[margin=2cm]{geometry} %% Why 2cm margin? Load geometry before background! 10 \usepackage[pages=some]{background} %% 'some' for title page 11 \usepackage[scale=15,color=pink]{draftwatermark} 12 \usepackage[Bjornstrup]{fncychap} %% Chapter style 15 13 16 14 %% Fonts 17 15 \usepackage{fontspec} 18 %% Issue with fontawesome pkg: path to FontAwesome.otf has to be hard-coded 19 \defaultfontfeatures{ 20 Path = /home/nicolas/.local/texlive/2020/texmf-dist/fonts/opentype/public/fontawesome/ 21 } 22 \usepackage{academicons, fontawesome, newtxtext} 16 %% Issue with path to 'FontAwesome.otf' 17 \defaultfontfeatures{Path=/usr/local/texlive/2020/texmf-dist/fonts/opentype/public/fontawesome/} 18 \usepackage{academicons,fontawesome} 23 19 24 20 %% Formatting 25 21 \usepackage[inline]{enumitem} 26 \usepackage{etoc, tabularx,xcolor}22 \usepackage{etoc,tabularx,xcolor} 27 23 28 24 %% Graphics 29 \usepackage{caption, graphicx, grffile} 25 \usepackage{caption} 26 \graphicspath{{../../../badges/}{../figures/}{../../../logos/}} 30 27 31 28 %% Labels 32 \usepackage{lastpage, natbib} 29 \usepackage{lastpage,natbib} 30 %\usepackage{natbib,pageslts} 33 31 34 %% Mathematics 35 \usepackage{ amsmath, amssymb, mathtools}32 %% Mathematics: 'amsmath' is loaded by 'mathtools' 33 \usepackage{mathtools,amssymb} 36 34 37 35 %% Versatility 38 36 \usepackage{subfiles} 39 37 40 %% Configuration 41 \graphicspath{ {../../../} {../figures/} } 38 %% Source code listings 39 \usepackage[cachedir=cache,outputdir=../build,chapter,newfloat]{minted} 40 %% chapter? newfloat? 41 42 %% Indexing and cross-referencing, loaded at the end for higher compatibility 43 \usepackage{hyperref,imakeidx} 42 44 43 45 %% Missing utmr8a font 44 46 \usepackage{times} 45 46 \usepackage{hyperref} %% links -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/styles.tex
r14113 r14644 1 1 %% ================================================================================================= 2 2 %% Styles 3 %% ============================================================================== 3 %% ================================================================================================= 4 4 5 5 %% Colors 6 \setmanualcolor 7 \colorlet{manualcolorshaded}{manualcolor!60} 8 \definecolor{orcidcolor}{HTML}{A6CE39} 6 \definecolor{orcidclr}{HTML}{A6CE39} 7 \definecolor{manclr}{cmyk}{\clr} %% \clr defined for each manual from local settings.tex 8 \colorlet{manclrshd}{manclr!60} %% Derived color for chapter heading, see below 9 10 %% Cover page 11 \backgroundsetup{ 12 firstpage=true,scale=1,angle=0,opacity=1, 13 contents ={ 14 \begin{tikzpicture}[remember picture,overlay] 15 \path[fill=manclr] (-0.5\paperwidth,7) rectangle (0.5\paperwidth,10); 16 \end{tikzpicture} 17 } 18 } 9 19 10 20 %% Page layout 11 \pagestyle{scrheadings} 21 %\pagestyle{scrheadings} 22 %\renewcommand{\chapterpagestyle}{empty} 23 \renewcommand{\chaptermark}[1]{\markboth{ #1}{}} %% Convert mark to lowercase 24 \renewcommand{\sectionmark}[1]{\markright{#1}{}} %% " "" "" " 25 \ohead{} %% Clear default headings 26 \lohead{Chap. \thechapter\ \leftmark} 27 \rehead{Sect. \thesection\ \rightmark} 28 \ifoot{Page \thepage\ of \pageref*{LastPage}} 29 %\ifoot[\pagemark]{Page \thepage\ of \lastpageref*{pagesLTS.arabic}} 30 \ofoot{\eng\ Reference Manual} 12 31 \addtokomafont{pagehead}{ \sffamily } 13 32 \addtokomafont{pagefoot}{ \sffamily \footnotesize} 14 33 \addtokomafont{pagenumber}{\sffamily \slshape } 15 \addtokomafont{chapter}{\color{white}} 16 \ohead{} \ofoot{} %% Clear defaults 34 %\addtokomafont{chapter}{\color{white}} 17 35 18 %% Caption 19 \captionsetup{font = footnotesize, justification = justified} 36 %% Cross-referencing 37 \hypersetup{ 38 pdftitle=\hdg,pdfauthor=Gurvan Madec and NEMO System Team, 39 pdfsubject=Reference manual of NEMO modelling framework,pdfkeywords=ocean circulation modelling, 40 colorlinks,allcolors=manclr 41 } 42 \renewcommand{\appendixautorefname}{appendix} %% `\autoref` uncapitalization 43 \renewcommand{\equationautorefname}{equation} %% "" "" 44 \renewcommand{\figureautorefname }{figure} %% "" "" 45 \renewcommand{\listingname }{namelist} %% "" "" 46 \renewcommand{\listlistingname }{List of Namelists} %% "" "" 47 \renewcommand{\tableautorefname }{table} %% "" "" 20 48 21 %% Footnote 49 %% Misc. (caption and footnote) 50 \captionsetup{font=footnotesize,justification=justified} 22 51 \renewcommand{\thefootnote}{\fnsymbol{footnote}} 23 52 … … 28 57 \renewcommand{\bibpostamble}{ \end{multicols} } 29 58 30 %% Catcodes 59 %% Catcodes (between `\makeatletter` and `\makeatother`) 31 60 \makeatletter 32 61 33 %% Prevent error with tikz and namelist inclusion 34 \global\let\tikz@ensure@dollar@catcode=\relax 35 36 %% First page 37 \backgroundsetup{ 38 firstpage = true, 39 scale = 1, angle = 0, opacity = 1, 40 contents = { 41 \begin{tikzpicture}[remember picture, overlay] 42 \path [fill = manualcolor] (-0.5\paperwidth, 7) rectangle (0.5\paperwidth, 10); 43 \end{tikzpicture} 44 } 62 %% Apply manual color for chap. headings (original snippets from fncychap.sty) 63 %% !!! Let trailing percent sign to avoid space insertion 64 \renewcommand{\DOCH}{% %% Upper box with chapter number 65 \settowidth{\py}{\CNoV\thechapter}% 66 \addtolength{\py}{-10pt}% %% Amount of space by which the number is shifted right 67 \fboxsep=0pt% 68 \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}% 69 \kern-\py\raise20pt% 70 \hbox{\color{manclrshd}\CNoV\thechapter}\\ 71 } 72 \renewcommand{\DOTI}[1]{% %% Lower box with chapter title 73 \nointerlineskip\raggedright% 74 \fboxsep=\myhi% 75 \vskip-1ex% 76 \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 77 \vskip 40\p@% 78 } 79 \renewcommand{\DOTIS}[1]{% %% Box for unumbered chapter 80 \fboxsep=0pt% 81 \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\ 82 \nointerlineskip\raggedright% 83 \fboxsep=\myhi% 84 \vskip-1ex% %% Remove white 1pt line 85 \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 86 \vskip 40\p@% 45 87 } 46 88 47 %% Apply engine color for chapter headings: tweaking snippets from fncychap.sty48 \renewcommand{\DOCH}{%49 \settowidth{\py}{\CNoV\thechapter}50 \addtolength{\py}{-10pt} % Amount of space by which the51 % % number is shifted right52 \fboxsep=0pt%53 \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%54 \kern-\py\raise20pt%55 \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\%56 }57 \renewcommand{\DOTI}[1]{%58 \nointerlineskip\raggedright%59 \fboxsep=\myhi%60 \vskip-1ex%61 \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%62 \vskip 40\p@%63 }64 \renewcommand{\DOTIS}[1]{%65 \fboxsep=0pt66 \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%67 \nointerlineskip\raggedright%68 \fboxsep=\myhi%69 \vskip-1ex% Remove white 1pt line70 \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%71 \vskip 40\p@%72 }73 74 %% Temporary fix75 \def\set@curr@file#1{%76 \begingroup77 \escapechar\m@ne78 \xdef\@curr@file{\expandafter\string\csname #1\endcsname}%79 \endgroup80 }81 \def\quote@name#1{"\quote@@name#1\@gobble""}82 \def\quote@@name#1"{#1\quote@@name}83 \def\unquote@name#1{\quote@@name#1\@gobble"}84 85 89 \makeatother -
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/todonotes.tex
r11187 r14644 1 \usepackage[]{todonotes} 1 %% ================================================================================================= 2 %% Notes 3 %% ================================================================================================= 4 5 \usepackage{todonotes} 2 6 3 7 \newcounter{ubcomment} 4 \newcommand{\ubcomment}[2][]{% 5 \refstepcounter{ubcomment}% 6 {% 7 \todo[linecolor=black,backgroundcolor={green!40!},size=\footnotesize]{% 8 \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% 9 }} 10 \newcommand{\ubcommentinline}[2][]{% 11 \refstepcounter{ubcomment}% 12 {% 13 \todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize]{% 14 \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% 8 9 \newcommand{\ubcomment }[2][]{ 10 \refstepcounter{ubcomment} 11 { 12 \todo[linecolor=black, backgroundcolor={green!40!},size=\footnotesize ]{ 13 \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2} 15 14 }} 16 15 17 \newcommand{\ubcommentmultiline}[2]{% 18 \refstepcounter{ubcomment}% 19 {% 20 \todo[linecolor=black,inline,caption={\textbf{{Fixme: UB} 21 [\theubcomment] #1}} ,backgroundcolor={green!40!},size=\footnotesize]{% 22 \textbf{Fixme: UB [\theubcomment]:}~#2}% 16 \newcommand{\ubcommentinline }[2][]{ 17 \refstepcounter{ubcomment} 18 { 19 \todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize ]{ 20 \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2} 21 }} 22 23 \newcommand{\ubcommentmultiline}[2]{ 24 \refstepcounter{ubcomment} 25 { 26 \todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize, 27 caption={\textbf{{Fixme: UB} [\theubcomment] #1}} ]{ 28 \textbf{Fixme: UB [ \theubcomment]:}~#2} 23 29 }} 24 30
Note: See TracChangeset
for help on using the changeset viewer.