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

source: NEMO/trunk/doc/latex/global/styles.tex

Last change on this file was 14527, checked in by nicolasmartin, 3 years ago

Various minor changes

File size: 3.5 KB
Line 
1%% =================================================================================================
2%% Styles
3%% =================================================================================================
4
5%% Colors
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}
19
20%% Page layout
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}
31\addtokomafont{pagehead}{  \sffamily              }
32\addtokomafont{pagefoot}{  \sffamily \footnotesize}
33\addtokomafont{pagenumber}{\sffamily \slshape     }
34%\addtokomafont{chapter}{\color{white}}
35
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}             %%     ""            ""
48
49%% Misc. (caption and footnote)
50\captionsetup{font=footnotesize,justification=justified}
51\renewcommand{\thefootnote}{\fnsymbol{footnote}}
52
53%% Bibliography
54\bibliographystyle{../../global/ametsoc}
55\renewcommand{\bibfont}{\small}
56\renewcommand{\bibpreamble }{\begin{multicols}{2}}
57\renewcommand{\bibpostamble}{  \end{multicols}   }
58
59%% Catcodes (between `\makeatletter` and `\makeatother`)
60\makeatletter
61
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@%
87}
88
89\makeatother
Note: See TracBrowser for help on using the repository browser.