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, |
---|
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 | } |
---|
20 | |
---|
21 | %% Page layout |
---|
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} |
---|
32 | \addtokomafont{pagehead}{ \sffamily } |
---|
33 | \addtokomafont{pagefoot}{ \sffamily \footnotesize} |
---|
34 | \addtokomafont{pagenumber}{\sffamily \slshape } |
---|
35 | %\addtokomafont{chapter}{\color{white}} |
---|
36 | |
---|
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} %% "" "" |
---|
52 | |
---|
53 | %% Misc. (caption and footnote) |
---|
54 | \captionsetup{font=footnotesize,justification=justified} |
---|
55 | \renewcommand{\thefootnote}{\fnsymbol{footnote}} |
---|
56 | |
---|
57 | %% Bibliography |
---|
58 | \bibliographystyle{../../global/ametsoc} |
---|
59 | \renewcommand{\bibfont}{\small} |
---|
60 | \renewcommand{\bibpreamble }{\begin{multicols}{2}} |
---|
61 | \renewcommand{\bibpostamble}{ \end{multicols} } |
---|
62 | |
---|
63 | %% Catcodes (between `\makeatletter` and `\makeatother`) |
---|
64 | \makeatletter |
---|
65 | |
---|
66 | %\global\let\tikz@ensure@dollar@catcode=\relax %% Prevent error with tikz and namelist inclusion |
---|
67 | |
---|
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@% |
---|
93 | } |
---|
94 | |
---|
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"} |
---|
105 | |
---|
106 | \makeatother |
---|