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 14257 for NEMO/trunk/doc/latex/global/styles.tex – NEMO

Ignore:
Timestamp:
2021-01-04T16:13:36+01:00 (3 years ago)
Author:
nicolasmartin
Message:

Overall review of LaTeX sources (not tested completely as of now):

  • Reworking global files: main document.tex, add glossary.tex, cosmetic changes...
  • Ignore missing namelists (namsbc_isf, namsbc_iscpl and namptr)
  • Removal of references for unused indices (\hfile, \ifile and \jp)
  • Update of .svnignore and svn:ignore properties accordingly
  • Split of manual abstract into a common NEMO abs for all and a specific one for each engine
  • Shrinking variables names used in the frontmatter
Location:
NEMO/trunk/doc/latex/global
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/latex/global

    • Property svn:ignore set to
      *.aux
      *.bbl
      *.blg
      *.fdb*
      *.fls
      *.idx
      *.ilg
      *.ind
      *.lo*
      *.out
      *.toc
      *.xdv
      cache*
  • NEMO/trunk/doc/latex/global/styles.tex

    r14113 r14257  
    1  
     1%% ================================================================================================= 
    22%% Styles 
    3 %% ============================================================================== 
     3%% ================================================================================================= 
    44 
    55%% 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, 
     13   angle    =0   ,opacity=1, 
     14   contents ={ 
     15      \begin{tikzpicture}[remember picture,overlay] 
     16         \path[fill=manclr] (-0.5\paperwidth,7) rectangle (0.5\paperwidth,10); 
     17      \end{tikzpicture} 
     18    } 
     19} 
    920 
    1021%% Page layout 
    11 \pagestyle{scrheadings} 
     22%\pagestyle{scrheadings} 
     23%\renewcommand{\chapterpagestyle}{empty} 
     24\renewcommand{\chaptermark}[1]{ \markboth{#1}{}} %% Convert mark to lowercase 
     25\renewcommand{\sectionmark}[1]{\markright{#1}{}} %%    "     ""  ""     "   
     26\ohead{} %% Clear default headings 
     27\lohead{Chap. \thechapter\  \leftmark} 
     28\rehead{Sect. \thesection\ \rightmark} 
     29\ifoot{Page \thepage\ of \pageref*{LastPage}} 
     30%\ifoot[\pagemark]{Page \thepage\ of \lastpageref*{pagesLTS.arabic}} 
     31\ofoot{\eng\ Reference Manual} 
    1232\addtokomafont{pagehead}{  \sffamily              } 
    1333\addtokomafont{pagefoot}{  \sffamily \footnotesize} 
    1434\addtokomafont{pagenumber}{\sffamily \slshape     } 
    15 \addtokomafont{chapter}{\color{white}} 
    16 \ohead{} \ofoot{}   %% Clear defaults 
     35%\addtokomafont{chapter}{\color{white}} 
    1736 
    18 %% Caption 
    19 \captionsetup{font = footnotesize, justification = justified} 
     37%% Cross-referencing 
     38\hypersetup{ 
     39   pdftitle=\hdg                                          , 
     40   pdfauthor=Gurvan Madec and NEMO System Team            , 
     41   pdfsubject=Reference manual of NEMO modelling framework, 
     42   pdfkeywords=ocean circulation modelling                , 
     43   colorlinks                                             , 
     44   allcolors=manclr 
     45} 
     46\renewcommand{\appendixautorefname}{appendix}          %% `\autoref` uncapitalization 
     47\renewcommand{\equationautorefname}{equation}          %%     ""            "" 
     48\renewcommand{\figureautorefname  }{figure}            %%     ""            "" 
     49\renewcommand{\listingname        }{namelist}          %%     ""            "" 
     50\renewcommand{\listlistingname    }{List of Namelists} %%     ""            "" 
     51\renewcommand{\tableautorefname   }{table}             %%     ""            "" 
    2052 
    21 %% Footnote 
     53%% Misc. (caption and footnote) 
     54\captionsetup{font=footnotesize,justification=justified} 
    2255\renewcommand{\thefootnote}{\fnsymbol{footnote}} 
    2356 
     
    2861\renewcommand{\bibpostamble}{  \end{multicols}   } 
    2962 
    30 %% Catcodes 
     63%% Catcodes (between `\makeatletter` and `\makeatother`) 
    3164\makeatletter 
    3265 
    33 %% Prevent error with tikz and namelist inclusion 
    34 \global\let\tikz@ensure@dollar@catcode=\relax 
     66%\global\let\tikz@ensure@dollar@catcode=\relax %% Prevent error with tikz and namelist inclusion 
    3567 
    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   } 
     68%% Apply manual color for chap. headings (original snippets from fncychap.sty) 
     69%% !!! Let trailing percent sign to avoid space insertion 
     70\renewcommand{\DOCH}{% %% Upper box with chapter number 
     71   \settowidth{\py}{\CNoV\thechapter}% 
     72   \addtolength{\py}{-10pt}% %% Amount of space by which the number is shifted right 
     73   \fboxsep=0pt% 
     74   \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}% 
     75   \kern-\py\raise20pt% 
     76   \hbox{\color{manclrshd}\CNoV\thechapter}\\ 
     77} 
     78\renewcommand{\DOTI}[1]{% %% Lower box with chapter title 
     79   \nointerlineskip\raggedright% 
     80   \fboxsep=\myhi% 
     81   \vskip-1ex% 
     82   \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 
     83   \vskip 40\p@% 
     84} 
     85\renewcommand{\DOTIS}[1]{% %% Box for unumbered chapter 
     86   \fboxsep=0pt% 
     87   \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\ 
     88   \nointerlineskip\raggedright% 
     89   \fboxsep=\myhi% 
     90   \vskip-1ex% %% Remove white 1pt line 
     91   \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 
     92   \vskip 40\p@% 
    4593} 
    4694 
    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"} 
     95%% Temporary fix? 
     96%\def\set@curr@file#1{ 
     97%  \begingroup 
     98%    \escapechar\m@ne 
     99%    \xdef\@curr@file{\expandafter\string\csname #1\endcsname} 
     100%  \endgroup 
     101%} 
     102%\def\quote@name#1{"\quote@@name#1\@gobble""} 
     103%\def\quote@@name#1"{#1\quote@@name} 
     104%\def\unquote@name#1{\quote@@name#1\@gobble"} 
    84105 
    85106\makeatother 
Note: See TracChangeset for help on using the changeset viewer.