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 9389 for branches/2017/dev_merge_2017/DOC/tex_main – NEMO

Ignore:
Timestamp:
2018-03-08T21:56:32+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Starting to use minted macros to highlight namelists parameters: \textit -> \forcode
Work in progress as all escape characters (\) have to be removed in namelist parameter ids
Then several \np macros along with their paramater values with will be replaced by \forcode{np = value} apart from section headings for indexing
Fixes: style issue by reordering preamble section, removing \np macros inside equations and editing path to NEMO_manual.tex for subfiles.

Location:
branches/2017/dev_merge_2017/DOC/tex_main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/DOC/tex_main/NEMO_manual.sty

    r9388 r9389  
    3939%% ============================================================================== 
    4040 
     41\pagestyle{fancy} 
     42\bibliographystyle{../tex_sub/ametsoc} 
     43 
    4144%% Additionnal fonts 
    4245 
     
    6265\def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax} 
    6366\def\LignesVerticales{\let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV} 
    64 \def\GrosCarreAvecUnChiffre#1{% 
    65    \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}% 
    66    \rlap{\hbox to 1cm{\hss\mbox{\color{white} #1}\hss}}% 
    67    \vrule height 0pt width 1cm depth 0pt% 
     67\def\GrosCarreAvecUnChiffre#1{ 
     68   \rlap{\vrule height 0.8cm width 1cm depth 0.2cm} 
     69   \rlap{\hbox to 1cm{\hss\mbox{\color{white} #1}\hss}} 
     70   \vrule height 0pt width 1cm depth 0pt 
    6871} 
    6972\def\@makechapterhead#1{ 
    7073   \hbox{ 
    71       \huge\LignesVerticales 
    72       \hspace{-0.5cm} 
    73       \GrosCarreAvecUnChiffre{\thechapter} 
    74       \hspace{0.2cm} 
     74      \huge\LignesVerticales\hspace{-0.5cm} 
     75      \GrosCarreAvecUnChiffre{\thechapter}\hspace{0.2cm} 
    7576      \hbox{#1} 
    7677   } 
     
    127128\newcommand{\NEMO}{\textit{NEMO}\xspace} 
    128129 
    129 \newcommand{\ifile}[1]{\textit{  #1.nc}\index{Input NetCDF files!#1.nc}} 
    130 \newcommand{   \jp}[1]{\textit{     #1}\index{     Model parameters!#1}} 
    131 \newcommand{   \hf}[1]{\textit{ #1.h90}\index{             h90 file!#1}} 
    132 \newcommand{  \key}[1]{\textbf{key\_#1}\index{        CPP keys!key\_#1}} 
    133 \newcommand{  \mdl}[1]{\textit{ #1.F90}\index{              Modules!#1}} 
    134 \newcommand{  \ngn}[1]{\textit{     #1}\index{  Namelist Group Name!#1}} 
    135 \newcommand{   \np}[1]{\textit{     #1}\index{   Namelist variables!#1}} 
    136 \newcommand{   \pp}[1]{\textit{     #1}\index{     Model parameters!#1}} 
    137 \newcommand{  \rou}[1]{\textit{     #1}\index{             Routines!#1}} 
     130\newcommand{\ifile}[1]{\textit{   #1.nc}\index{Input NetCDF files!#1.nc}} 
     131\newcommand{   \hf}[1]{\textit{  #1.h90}\index{             h90 file!#1}} 
     132\newcommand{  \key}[1]{\textbf{ key\_#1}\index{        CPP keys!key\_#1}} 
     133\newcommand{  \mdl}[1]{\textit{  #1.F90}\index{              Modules!#1}} 
     134\newcommand{  \ngn}[1]{\textit{      #1}\index{  Namelist Group Name!#1}} 
     135\newcommand{  \rou}[1]{\textit{      #1}\index{             Routines!#1}} 
     136 
     137\newcommand{\jp}[1]{\forcode{#1}\index{  Model parameters!#1}} 
     138\newcommand{\np}[1]{\forcode{#1}\index{Namelist variables!#1}} 
    138139 
    139140\newcommand{\grad}{\nabla} 
  • branches/2017/dev_merge_2017/DOC/tex_main/NEMO_manual.tex

    r9388 r9389  
    1616 
    1717\usepackage{../tex_main/NEMO_manual} 
    18 \usepackage{../tex_sub/minted} 
    19 \pagestyle{fancy} 
    20 \bibliographystyle{../tex_sub/ametsoc} 
     18\usepackage{../tex_sub/NEMO_minted} 
    2119 
    2220\makeindex 
Note: See TracChangeset for help on using the changeset viewer.