Changeset 11572


Ignore:
Timestamp:
2019-09-19T10:47:06+02:00 (12 months ago)
Author:
nicolasmartin
Message:

Review indexes style

Location:
NEMO/trunk/doc/latex/global
Files:
7 edited

Legend:

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

    r11563 r11572  
    1111 
    1212%% Document layout 
    13 \documentclass[fontsize = 10pt, twoside, abstract]{scrreprt} 
     13\documentclass[fontsize = 10pt, twoside, abstract, draft]{scrreprt} 
    1414 
    1515%% Load configurations 
     
    9999\addcontentsline{toc}{chapter}{Indexes} 
    100100\lohead{Indexes} \rehead{Indexes} 
     101\printindex[blocks] 
    101102\printindex[keys] 
    102103\printindex[modules] 
    103 \printindex[blocks] 
    104104\printindex[parameters] 
    105105\printindex[subroutines] 
  • NEMO/trunk/doc/latex/global/highlighting.tex

    r11567 r11572  
    22%% ============================================================================== 
    33 
    4 \usepackage[outputdir=../build, chapter]{minted} 
     4\usepackage[outputdir=../build, chapter, newfloat]{minted} 
    55 
    66%% Global highlighting style 
  • NEMO/trunk/doc/latex/global/index.ist

    r11176 r11572  
    11headings_flag 1 
    2 heading_prefix "{\\medskip\\hfill\\large\\textsf{\\textbf{" 
    3 heading_suffix "}}\\hfill}\\medskip\\nopagebreak\n" 
     2heading_prefix "{\\medskip\\hfill\\large{" 
     3heading_suffix "}}\\hfill}\\smallskip\n" 
    44 
    55delim_0 "\\dotfill~" 
    6 delim_1 "\\dotfill~" 
    7 delim_2 "\\dotfill~" 
    8  
  • NEMO/trunk/doc/latex/global/indexes.tex

    r11567 r11572  
    33 
    44%% Index entries (italic font for files, preformat for code) 
    5 \newcommand{\hf}[1]{\textit{#1.h90}   \index{h90 files!#1}} 
    6 \newcommand{\ifile}[1]{\textit{#1.nc} \index{Input NetCDF files!#1.nc}} 
    7 \newcommand{\jp}[1]{\texttt{#1}       \index{Model parameters!#1}} 
    8 \newcommand{\key}[1]{\index[keys]{#1}        \texttt{\textbf{key\_#1}}} 
    9 \newcommand{\mdl}[1]{\index[modules]{#1}     \textit{#1.F90}          } 
    10 \newcommand{\nam}[1]{\index[blocks]{#1}      \forcode{&nam#1}         } 
    11 \newcommand{\np}[1]{    \index[parameters]{#1}  \texttt{#1}           } 
    12 \newcommand{\npnew}[2]{ \index[parameters]{#1}  \forcode{#1=#2}       } 
    13 \newcommand{\rou}[1]{\index[subroutines]{#1} \texttt{#1}              } 
     5\newcommand{\hf}[1]{   \index{h90 files!#1}             \textit{#1.h90}          } 
     6\newcommand{\ifile}[1]{\index{Input NetCDF files!#1.nc} \textit{#1.nc}           } 
     7\newcommand{\jp}[1]{   \index{Model parameters!#1}      \texttt{#1}              } 
     8\newcommand{\key}[1]{  \index[keys]{#1@\texttt{\textbf{key\_#1}}} \texttt{\textbf{key\_#1}}} 
     9\newcommand{\mdl}[1]{  \index[modules]{#1@\textit{#1.F90}}        \textit{#1.F90}          } 
     10\newcommand{\nam}[1]{  \index[blocks]{#1@\texttt{\&nam#1}}        \forcode{&nam#1}         } 
     11\newcommand{\np}[1]{   \index[parameters]{#1@\texttt{#1}}         \texttt{#1}              } 
     12\newcommand{\npnew}[2][]{\index[parameters]{#2@\texttt{#2}}       \forcode{#2#1}           } 
     13\newcommand{\rou}[1]{  \index[subroutines]{#1@\texttt{#1}}        \texttt{#1}              } 
    1414 
    1515\indexsetup{toclevel=section, othercode=\small} 
    1616 
    17 \makeindex[intoc=true, name=keys       , title=CPP keys            ({\em key\_     } prefix) 
    18          ] 
    19 \makeindex[intoc=true, name=modules    , title=\fortran\ modules   ({\em *.F90     }       ), 
    20 columns=3] 
    21 \makeindex[intoc=true, name=blocks     , title=Namelist blocks     ({\em nam       } prefix), 
    22 columns=3] 
    23 \makeindex[intoc=true, name=parameters , title=Namelist parameters ({\em [cdlnr]n\_}       ), 
    24 columns=3] 
    25 \makeindex[intoc=true, name=subroutines, title=Subroutines 
    26          ] 
     17\makeindex[intoc=true, name=blocks     , title=Namelist blocks      , columns=3] 
     18\makeindex[intoc=true, name=keys       , title=CPP keys                        ] 
     19\makeindex[intoc=true, name=modules    , title=\fortran\ modules    , columns=3] 
     20\makeindex[intoc=true, name=parameters , title=Namelist parameters  , columns=3] 
     21\makeindex[intoc=true, name=subroutines, title=\fortran\ subroutines           ] 
  • NEMO/trunk/doc/latex/global/packages.tex

    r11562 r11572  
    66 
    77%% KOMA-script 
    8 %\usepackage{scrhack} 
    9 \usepackage[footsepline=0.25pt, 
    10 headsepline=0.25pt]{scrlayer-scrpage} 
     8\usepackage[footsepline=0.25pt, headsepline=0.25pt]{scrlayer-scrpage} 
    119 
    1210%% customization (layout, header/footer styles & contents, background) 
    1311\usepackage{draftwatermark} 
    14 \usepackage[margin = 2cm]{geometry}             %% 'pass' to enable \restoregeometry only 
     12\usepackage[margin = 2cm]{geometry} 
    1513\usepackage[pages = some]{background}   %% 'some' for title page 
    1614\usepackage[Bjornstrup]{fncychap} 
    1715 
    18 %% fonts 
     16%% Fonts 
    1917\usepackage{fontspec} 
    2018%% Issue with fontawesome pkg: path to FontAwesome.otf has to be hard-coded 
     
    2422\usepackage{academicons, fontawesome, newtxtext} 
    2523 
    26 %% formatting 
    27 \usepackage{tabularx, etoc, xcolor} 
     24%% Formatting 
     25\usepackage{etoc, tabularx, xcolor} 
    2826 
    29 %% graphics 
     27%% Graphics 
    3028\usepackage{caption, graphicx} 
    3129 
    32 %% labels 
    33 \usepackage{bookmark, lastpage, natbib} 
     30%% Labels 
     31\usepackage{lastpage, natbib} 
    3432 
    35 %% mathematics 
     33%% Mathematics 
    3634\usepackage{amsmath, amssymb} 
    3735 
    38 %% versatility 
     36%% Versatility 
    3937\usepackage{subfiles} 
    4038 
  • NEMO/trunk/doc/latex/global/preamble.tex

    r11515 r11572  
    1616  colorlinks, 
    1717  citecolor = manualcolor, linkcolor = manualcolor, urlcolor = manualcolor, 
    18   final = true  %% Links even with draft building 
     18  final   %% Links even in draft mode 
    1919} 
    2020 
    21 \backgroundsetup{ 
    22   firstpage = true, 
    23   scale = 1, angle = 0, opacity = 1, 
    24   contents = { 
    25     \begin{tikzpicture}[remember picture, overlay] 
    26       \path [fill = manualcolor] (-0.5\paperwidth, 7) rectangle (0.5\paperwidth, 10); 
    27     \end{tikzpicture} 
    28   } 
    29 } 
     21%% `\autoref` uncapitalization 
     22\renewcommand{\appendixautorefname}{appendix} 
     23\renewcommand{\equationautorefname}{equation} 
     24\renewcommand{\figureautorefname}{figure} 
     25%\renewcommand{\listingautorefname}{namelist} 
     26\renewcommand{\tableautorefname}{table} 
  • NEMO/trunk/doc/latex/global/styles.tex

    r11567 r11572  
    1919\captionsetup{font = footnotesize, justification = justified} 
    2020 
    21 %% `\autoref` names (uncapitalize) 
    22 \renewcommand{\appendixautorefname}{appendix} 
    23 \renewcommand{\equationautorefname}{equation} 
    24 \renewcommand{\figureautorefname}{figure} 
    25 %\renewcommand{\listingautorefname}{namelist} 
    26 \renewcommand{\tableautorefname}{table} 
    27  
    2821%% Footnote 
    2922\renewcommand{\thefootnote}{\fnsymbol{footnote}} 
     
    4033%% Prevent error with tikz and namelist inclusion 
    4134\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  } 
     45} 
    4246 
    4347%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty 
Note: See TracChangeset for help on using the changeset viewer.