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 13841 – NEMO

Changeset 13841


Ignore:
Timestamp:
2020-11-20T14:38:47+01:00 (4 years ago)
Author:
nicolasmartin
Message:

Return to the state just before the confusing commit of the mid-year merge

Location:
NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global
Files:
1 deleted
9 edited
6 copied

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global

    • Property svn:ignore deleted
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/document.tex

    r13825 r13841  
    11 
    2 %% ============================================================================== 
    3 %% Template structure for reference manual 
    4 %% ============================================================================== 
     2%% ================================================================================================= 
     3%% Template structure for reference manuals 
     4%% ================================================================================================= 
    55 
    66%% NEMO release version 
    7 \def \version{4.0rc~} 
     7\def \version{trunk} 
    88 
    99%% Preamble 
    10 %% ============================================================================== 
     10%% ================================================================================================= 
    1111 
    1212%% Document layout 
    13 \documentclass[]{scrreprt} 
     13\documentclass[fontsize = 10pt, twoside, abstract]{scrreprt} 
    1414 
    15 %% Load the configuration of the manual 
    16 \input{../main/definitions} 
    17  
    18 %% Load global *.tex files 
    19 \input{../../global/preamble} 
    20  
    21 \dominitoc 
    22  
    23 %% Launch the creation of the indexes 
    24 \input{../../global/indexes} 
    25  
     15%% Load manual configuration 
     16\input{../../global/prologue} 
    2617 
    2718%% End of common preamble between main and sub-files 
    2819%% Override custom cmds for full manual compilation 
    2920\newcommand{\subinc}[1]{#1} 
    30 \newcommand{\notinsubfile}[1]{} 
     21\newcommand{\subexc}[1]{} 
    3122 
    3223\begin{document} 
    3324 
    3425\renewcommand{\subinc}[1]{} 
    35 \renewcommand{\notinsubfile}[1]{#1} 
    36  
    37 \renewcommand{\biblio}{} 
    38 \renewcommand{\pindex}{} 
     26\renewcommand{\subexc}[1]{#1} 
    3927 
    4028 
    4129%% Frontmatter 
    42 %% ============================================================================== 
     30%% ================================================================================================= 
    4331 
    44 \pagenumbering{gobble} 
     32\pagenumbering{gobble}   %% Disable page numbering temporarily 
    4533 
    4634%% Title page 
    4735\input{../../global/frontpage} 
    4836 
    49 \maketitle 
    50 \emptythanks 
     37%% Footer for introductory parts (no header by cleaning default) 
     38\ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark} 
    5139 
    5240%% Information page (2nd page) 
    5341\input{../../global/info_page} 
    5442 
    55 %% Foreword 
    56 %\frontmatter   %% Chapter numbering off and Roman numerals for page numbers 
     43\listoffigures 
     44\listoflistings 
     45\listoftables 
     46 
     47\clearpage 
     48 
    5749\pagenumbering{roman} 
    58 \input{foreword} 
     50\ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark} 
     51 
     52\input{introduction} 
    5953 
    6054%% Table of Contents 
    6155\tableofcontents 
    62 \listoffigures 
    63 \listoftables 
    64 \listoflistings 
    6556 
    6657\clearpage 
    67 %\end{document} 
    6858 
    6959 
    7060%% Mainmatter 
    71 %% ============================================================================== 
     61%% ================================================================================================= 
    7262 
    73 %\mainmatter   %% Chapter numbering on, page numbering is reset with Arabic numerals 
     63%% Headings for document body 
    7464\pagenumbering{arabic} 
     65\lohead{Chap.\ \thechapter\ \leftmark} \rehead{Sect.\ \thesection\ \rightmark} 
     66\ifoot[]{Page\ \pagemark\ of \pageref*{LastPage}} 
    7567 
    7668\include{chapters} 
     
    7870 
    7971%% Appendix 
    80 %% ============================================================================== 
     72%% ================================================================================================= 
    8173 
    82 %% Chapter numbering is reset with letters now 
    83 \appendix    
     74\appendix   %% Chapter numbering with letters by now 
     75\lohead{Apdx\ \thechapter\ \leftmark} 
     76\include{appendices} 
    8477 
    85 \include{appendices} 
     78%% Append coding rules for every manual 
     79\input{../../global/coding_rules} 
    8680 
    8781 
    8882%% Backmatter 
    89 %% ============================================================================== 
     83%% ================================================================================================= 
    9084 
    91 %\backmatter   %% Chapter numbering off 
    92  
    93 %% Bibliography 
    94 \phantomsection 
    95 \addcontentsline{toc}{chapter}{Bibliography} 
    96 \bibliography{../main/bibliography} 
    97  
    98 %% Index 
    99 \clearpage 
    100 \phantomsection 
    101 \addcontentsline{toc}{chapter}{Indexes} 
    102 \printindex[keys] 
    103 \printindex[modules] 
    104 \printindex[blocks] 
    105 \printindex[parameters] 
    106 \printindex[subroutines] 
     85%% Bibliography and indexes 
     86\input{../../global/epilogue} 
    10787 
    10888\end{document} 
    109  
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/frontpage.tex

    r12377 r13841  
    11 
    2 \title{\heading} 
    3 \author{\firstauthor \and \secondauthor\thanks{\protect\input{thanks}}} 
    4 \date{\today} 
     2\begin{titlepage} 
     3%  \newgeometry{hmargin = 1.5cm, vmargin = 3cm} 
     4  \setlength{\parindent}{0pt} 
    55 
    6 \pretitle{ 
    76  \begin{center} 
    8 \begin{figure}[H] 
    9   \begin{minipage}[c]{0.35\textwidth} 
    10     \href{http://www.nemo-ocean.eu}{\includegraphics[width=0.7\textwidth]{logos/NEMO_grey}} 
     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 \\ 
     13      \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} 
     22 
     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 
     31 
     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} 
     37 
     38  \vfill 
     39 
     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} 
    1149  \end{minipage} 
    12   \hfill 
    13   \begin{minipage}[c]{0.65\textwidth} 
    14     \centering 
    15     \large{\em{{N}ucleus for {E}uropean {M}odelling of the {O}cean}} 
    16   \end{minipage} 
    17 \end{figure} 
    18 \vfill 
    19     \Huge 
    20 } 
    21 \posttitle{\par\end{center}\vskip 0.5em} 
    22 \preauthor{\begin{center}\Large\lineskip0.5em\begin{tabular}[t]{c}} 
    23 \postauthor{\end{tabular}\par\end{center}} 
    24 \predate{ 
     50 
    2551  \vfill 
     52 
    2653  \begin{center} 
    27     \large Version \version --- 
    28 } 
    29 \postdate{ 
    30     \par~\\ 
    31     \href{http://doi.org/10.5281/zenodo.\zid}{\includegraphics{{badges/zenodo.\zid}.pdf}} 
     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 \\ 
    3263  \end{center} 
    33   \vfill 
    34   \begin{center} 
    35     \href{http://www.cmcc.it}{          \includegraphics[height=0.055\textheight]{logos/CMCC}} 
    36     \hspace{0.5em} 
    37     \href{http://www.cnrs.fr}{          \includegraphics[height=0.055\textheight]{logos/CNRS}} 
    38     \hspace{0.9em} 
    39     \href{http://www.mercator-ocean.fr}{\includegraphics[height=0.055\textheight]{logos/MOI} } 
    40     \hspace{0.45em} 
    41     \href{http://www.metoffice.gov.uk}{ \includegraphics[height=0.055\textheight]{logos/UKMO}} 
    42     \hspace{0.5em} 
    43     \href{http://nerc.ukri.org}{        \includegraphics[height=0.055\textheight]{logos/NERC}} \\ 
    44     \large{{\em{C}ommunity \hspace{1.5em} {O}cean \hspace{1.5em} {M}odel}} 
    45   \end{center} 
    46 } 
    4764 
    48 \thanksmarkseries{fnsymbol} 
     65\end{titlepage} 
    4966 
     67\restoregeometry 
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/highlighting.tex

    r12377 r13841  
    22%% ============================================================================== 
    33 
    4 \usepackage[outputdir=../build]{minted} 
     4\usepackage[outputdir=../build, chapter, newfloat]{minted} 
    55 
    66%% Global highlighting style 
    77\definecolor{bg}{HTML}{f8f8f8} 
    88\usemintedstyle{emacs} 
    9 \setminted{bgcolor=bg, fontsize=\scriptsize, breaklines, frame=leftline} 
     9\setminted{bgcolor=bg, fontsize=\scriptsize, breaklines} 
    1010\setminted[xml]{style=borland} %% Specific per language 
    1111 
     
    2222 
    2323%% File 
    24 \newmintedfile[forfile]{fortran}{}   % \forfile{../namelists/nam...} 
     24\newmintedfile[forfile]{fortran}{} 
    2525 
    2626%% Inline 
    27 \newmintinline[forcode]{fortran}{fontsize=auto, frame=lines}   % \forcode{...} 
    28 \newmintinline[xmlcode]{xml}{    fontsize=auto, frame=lines}   % \xmlcode{...} 
    29 \newmintinline[snippet]{console}{fontsize=auto, frame=lines}   % \snippet{...} 
     27\newmintinline[forcode]{fortran}{bgcolor=, fontsize=auto}   % \forcode{...} 
     28\newmintinline[xmlcode]{xml}{    bgcolor=, fontsize=auto}   % \xmlcode{...} 
     29\newmintinline[snippet]{console}{bgcolor=, fontsize=auto}   % \snippet{...} 
    3030 
    3131%% Namelists inclusion 
    3232\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} 
    33  
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/index.ist

    r12377 r13841  
    11headings_flag 1 
    2 heading_prefix "{\\medskip\\hfill\\large\\textsf{\\textbf{" 
    3 heading_suffix "}}\\hfill}\\medskip\\nopagebreak\n" 
    4  
     2heading_prefix "\\medskip\\hfill\\textnormal{" 
     3heading_suffix "}\\hfill\\smallskip\n" 
    54delim_0 "\\dotfill~" 
    6 delim_1 "\\dotfill~" 
    7 delim_2 "\\dotfill~" 
    8  
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/info_page.tex

    r12377 r13841  
    22\thispagestyle{plain} 
    33 
    4 % ================================================================ 
    5 % Disclaimer 
    6 % ================================================================ 
     4%% ================================================================ 
     5%% Disclaimer 
     6%% ================================================================ 
    77\subsubsection*{Disclaimer} 
    88 
    99Like all components of the modelling framework, 
    10 the \engine~core engine is developed under the \href{http://www.cecill.info}{CECILL license}, 
    11 which is a French adaptation of the GNU GPL (General Public License). 
     10the \engine\ core engine is developed under the \href{http://www.cecill.info}{CECILL license}, 
     11which is a French adaptation of the GNU GPL (\textbf{G}eneral \textbf{P}ublic \textbf{L}icense). 
    1212Anyone may use it freely for research purposes, and is encouraged to 
    13 communicate back to the NEMO team its own developments and improvements. 
     13communicate back to the development team its own developments and improvements. 
    1414 
    1515The model and the present document have been made available as a service to the community. 
     
    1818Users are encouraged to bring them to our attention. 
    1919 
    20 The authors assume no responsibility for problems, errors, or incorrect usage of NEMO. 
     20The authors assume no responsibility for problems, errors, or incorrect usage of \NEMO. 
    2121 
    22 % ================================================================ 
    23 % External resources 
    24 % ================================================================ 
     22%% ================================================================ 
     23%% External resources 
     24%% ================================================================ 
    2525\subsubsection*{Other resources} 
     26\label{resources} 
    2627 
    2728Additional information can be found on: 
    2829\begin{itemize} 
    29 \item the \href{http://www.nemo-ocean.eu}{website} of the project detailing several 
     30\item \faWordpress\ the \href{http://www.nemo-ocean.eu}{website} of the project detailing several 
    3031  associated applications and an exhaustive users bibliography 
    31 \item the \href{http://forge.ipsl.jussieu.fr/nemo}{development platform} of the model with 
    32   the code repository and some main resources (wiki, ticket system, forums, \ldots) 
    33 \item the \href{http://zenodo.org/communities/nemo-ocean}{online archive} 
    34   delivering the publications issued by the consortium 
    35 \item two mailing lists: 
     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: 
    3640  the \href{http://listes.ipsl.fr/sympa/info/nemo-newsletter}{newsletter} for 
    3741  top-down communications from the project 
     
    4145\end{itemize} 
    4246 
    43 % ================================================================ 
    44 % Citation 
    45 % ================================================================ 
     47%% ================================================================ 
     48%% Citation 
     49%% ================================================================ 
    4650\subsubsection*{Citation} 
    4751 
    4852Reference for papers and other publications is as follows: 
    4953 
    50 \vspace{0.5cm} 
     54\medskip 
    5155 
    52 %% \sloppy: workaround for breaking DOI URL 
    53 \sloppy 
    54 ``{\bfseries \heading}'',  
    55 \firstauthor and \secondauthor,  
    56 {\em Scientific Notes of Climate Modelling Center}, \textbf{\ipslnum} --- ISSN 1288-1619,  
    57 Institut Pierre-Simon Laplace (IPSL),  
    58 \href{https://doi.org/10.5281/zenodo.\zid}{doi:10.5281/zenodo.\zid} 
     56\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} 
     61\end{sloppypar} 
    5962 
    6063\begin{figure}[b] 
    61   \begin{minipage}[c]{0.72\textwidth} 
    62     \small\ttfamily{Scientific Notes of Climate Modelling Center \\ 
    63       ISSN 1288-1619                                             \\ 
     64  \begin{minipage}[c]{0.7\textwidth} 
     65    \small 
     66    \ttfamily{ 
     67      Scientific Notes of Climate Modelling Center \\ 
     68      ISSN 1288-1619                               \\ 
    6469      Institut Pierre-Simon Laplace (IPSL) 
    6570    } 
     
    7075  \end{minipage} 
    7176\end{figure} 
    72  
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/new_cmds.tex

    r13825 r13841  
    22%% ============================================================================== 
    33 
    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}~} 
     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$}} 
    118\newcommand{\TOP   }{\textsl{TOP}} 
    129\newcommand{\PISCES}{\textsl{PISCES}} 
    13 \newcommand{\fortran}{\textsc{Fortran}~} 
    14 \newcommand{\fninety}{\textsc{Fortran 90}~} 
     10\newcommand{\NEMOVAR}{\textsl{NEMOVAR}} 
     11 
     12%% Links for external components 
     13\newcommand{\AGRIF}{\href{http://agrif.imag.fr}{AGRIF}} 
     14\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}} 
     17 
     18%% Fortran in small capitals 
     19\newcommand{\fortran}{\textsc{Fortran}} 
     20\newcommand{\fninety}{\textsc{Fortran 90}} 
    1521 
    1622%% Common aliases 
     
    2026\newcommand{\ztilde}{\ensuremath{\tilde z}} 
    2127\newcommand{\stilde}{\ensuremath{\tilde s}} 
    22 \newcommand{\ie}{\ensuremath{i.e.}~} 
    23 \newcommand{\eg}{\ensuremath{e.g.}~} 
     28\newcommand{\ie}{\ensuremath{i.e.}} 
     29\newcommand{\eg}{\ensuremath{e.g.}} 
    2430 
    2531%% Inline maths 
     
    3339\newcommand{\lt}{\left} 
    3440\newcommand{\rt}{\right} 
    35 \newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} 
     41\newcommand{\vect}[1]{\ensuremath{ \mathbf{#1} }} 
    3642\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} 
    3743 
    38 %% Workaround for issue with \listoffigures 
    39 \DeclareRobustCommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}} 
     44%% Convert chapter/section headings to lowercase 
     45\renewcommand{\chaptermark}[1]{\markboth{#1}{}} 
     46\renewcommand{\sectionmark}[1]{\markright{#1}{}} 
     47 
     48%% Retrieve month name 
     49\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 
     54  \fi, \number \year 
     55} 
     56 
     57%% Link to orcid profile 
     58\newcommand{\orcid}[1]{\href{http://orcid.org/#1}{\textcolor{orcidcolor}\aiOrcidSquare}} 
     59 
     60%% Workaround for \listoffigures 
     61\DeclareRobustCommand{\triad}[6][]{\ensuremath{ {}_{#2}^{#3} { \mathbb{#4}_{#1} }_{#5}^{\,#6} }} 
    4062 
    4163%% New command for ToC 
    42 \newcommand{\chaptertoc}[1][Table of contents]{ 
     64\newcommand{\chaptertoc}[1][Table of contents]{% 
    4365  \thispagestyle{empty} 
    44   \etocsettocstyle{\addsec*{#1}}{} 
    45   \localtableofcontents 
     66  \etocsettocstyle{\addsec*{#1}}{}% 
     67  \localtableofcontents% 
    4668  \vfill 
    4769} 
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/packages.tex

    r13825 r13841  
    33%% ============================================================================== 
    44 
    5 \usepackage{natbib}                      %% bib 
    6 \usepackage{caption}                     %% caption 
    7 \usepackage{xcolor}                      %% color 
    8 \usepackage{times}                       %% font 
    9 \usepackage[inline]{enumitem}                    %% list 
    10 \usepackage{amsmath}                     %% maths 
    11 %\usepackage{fancyhdr}                    %% page 
    12 \usepackage{minitoc}                     %% toc 
    13 \usepackage{subfiles}                    %% subdocs 
    14 \usepackage{draftwatermark}              %% watermark 
    15 \usepackage{titling}                     %% titlepage 
    16 \usepackage{etoc} 
    17 \usepackage{mathtools} 
    18 \usepackage{academicons} 
     5%% 'hyperref' pkg is loaded at the end of the preamble for higher compatibility 
    196 
    20 %% Extensions in bundle package 
    21 \usepackage{amssymb, graphicx, tabularx, textcomp} 
    22 \usepackage[utf8]{inputenc}              %% input encoding 
     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} 
     15 
     16%% Fonts 
     17\usepackage{fontspec} 
     18%% Issue with fontawesome pkg: path to FontAwesome.otf has to be hard-coded 
     19\defaultfontfeatures{ 
     20    Path = /usr/local/texlive/2019/texmf-dist/fonts/opentype/public/fontawesome/ 
     21} 
     22\usepackage{academicons, fontawesome, newtxtext} 
     23 
     24%% Formatting 
     25\usepackage[inline]{enumitem} 
     26\usepackage{etoc, tabularx, xcolor} 
     27 
     28%% Graphics 
     29\usepackage{caption, graphicx, grffile} 
     30 
     31%% Labels 
     32\usepackage{lastpage, natbib} 
     33 
     34%% Mathematics 
     35\usepackage{amsmath, amssymb, mathtools} 
     36 
     37%% Versatility 
     38\usepackage{subfiles} 
    2339 
    2440%% Configuration 
    2541\graphicspath{ {../../../} {../figures/} } 
    26 %\captionsetup{margin=10pt, font={small}, labelsep=colon, labelfont={bf}} 
    27 \renewcommand{\bibfont}{\small} 
    28 %\renewcommand{\bibsep}{3pt} 
    2942 
     43%% Missing utmr8a font 
     44\usepackage{times} 
  • NEMO/branches/2020/dev_r13787_doc_latex_recovery/doc/latex/global/styles.tex

    r12377 r13841  
    33%% ============================================================================== 
    44 
    5 %\pagestyle{fancy} 
    6 \bibliographystyle{../../global/ametsoc} 
    7 \renewcommand{\bibpreamble}{\begin{multicols}{2}} 
    8 \renewcommand{\bibpostamble}{\end{multicols}} 
    9  
    10 %% Additional fonts 
    11 \DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} 
     5%% Colors 
     6\setmanualcolor 
     7\colorlet{manualcolorshaded}{manualcolor!60} 
     8\definecolor{orcidcolor}{HTML}{A6CE39} 
    129 
    1310%% Page layout 
    14 %\fancyhf{} 
    15 %\fancyhead[LE,RO]{\bfseries\thepage} 
    16 %\fancyhead[LO]{\bfseries\hspace{-0em}\rightmark} 
    17 %\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} 
    18 %\fancyhead[RE]{\bfseries\leftmark} 
    19 %\renewcommand{\chaptermark}[1]{\markboth{#1}{}} 
    20 %\renewcommand{\headrulewidth}{0.5pt} 
    21 %\renewcommand{\footrulewidth}{0pt  } 
    22 %\addtolength{\headheight}{2.6pt} 
     11\pagestyle{scrheadings} 
     12\addtokomafont{pagehead}{  \sffamily              } 
     13\addtokomafont{pagefoot}{  \sffamily \footnotesize} 
     14\addtokomafont{pagenumber}{\sffamily \slshape     } 
     15\addtokomafont{chapter}{\color{white}} 
     16\ohead{} \ofoot{}   %% Clear defaults 
    2317 
     18%% Caption 
     19\captionsetup{font = footnotesize, justification = justified} 
     20 
     21%% Footnote 
     22\renewcommand{\thefootnote}{\fnsymbol{footnote}} 
     23 
     24%% Bibliography 
     25\bibliographystyle{../../global/ametsoc} 
     26\renewcommand{\bibfont}{\small} 
     27\renewcommand{\bibpreamble }{\begin{multicols}{2}} 
     28\renewcommand{\bibpostamble}{  \end{multicols}   } 
    2429 
    2530%% Catcodes 
    26 %\makeatletter 
    27 %\def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax} 
    28 %\def\LignesVerticales{\let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV} 
    29 %\def\GrosCarreAvecUnChiffre#1{ 
    30 %  \rlap{\vrule height 0.8cm width 1cm depth 0.2cm} 
    31 %  \rlap{\hbox to 1cm{\hss\mbox{\color{white} #1}\hss}} 
    32 %  \vrule height 0pt width 1cm depth 0pt 
    33 %} 
    34 %\def\@makechapterhead#1{ 
    35 %  \hbox{ 
    36 %     \huge\LignesVerticales\hspace{-0.5cm} 
    37 %     \GrosCarreAvecUnChiffre{\thechapter}\hspace{0.2cm} 
    38 %     \hbox{#1} 
    39 %  } 
    40 %  \par\vskip 
    41 %1cm 
    42 %} 
    43 %\def\@makeschapterhead#1{ 
    44 %  \hbox{ 
    45 %     \huge\LignesVerticales 
    46 %     \hbox{#1} 
    47 %  } 
    48 %  \par\vskip 
    49 %2cm 
    50 %} 
    51 %\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else 
    52 %  \hbox{} 
    53 %  \vspace*{\fill} 
    54 %  \vspace{\fill} 
    55 %  \thispagestyle{empty} 
    56 %  \newpage 
    57 %  \if@twocolumn\hbox{}\newpage\fi\fi\fi} 
    58 %\def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}} 
    59 %\makeatother 
     31\makeatletter 
    6032 
     33%% Prevent error with tikz and namelist inclusion 
     34\global\let\tikz@ensure@dollar@catcode=\relax 
    6135 
     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  } 
     45} 
     46 
     47%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty 
     48\renewcommand{\DOCH}{% 
     49  \settowidth{\py}{\CNoV\thechapter} 
     50  \addtolength{\py}{-10pt}      % Amount of space by which the 
     51%                                  % number is shifted right 
     52  \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=0pt 
     66  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\% 
     67  \nointerlineskip\raggedright% 
     68  \fboxsep=\myhi% 
     69  \vskip-1ex% Remove white 1pt line 
     70  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 
     71  \vskip 40\p@% 
     72} 
     73 
     74%% Temporary fix 
     75\def\set@curr@file#1{% 
     76  \begingroup 
     77    \escapechar\m@ne 
     78    \xdef\@curr@file{\expandafter\string\csname #1\endcsname}% 
     79  \endgroup 
     80} 
     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\makeatother 
Note: See TracChangeset for help on using the changeset viewer.