[14644] | 1 | %% ================================================================================================= |
---|
[11148] | 2 | %% Styles |
---|
[14644] | 3 | %% ================================================================================================= |
---|
[11170] | 4 | |
---|
[14113] | 5 | %% Colors |
---|
[14644] | 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 |
---|
[11148] | 9 | |
---|
[14644] | 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 | |
---|
[11433] | 20 | %% Page layout |
---|
[14644] | 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} |
---|
[14113] | 31 | \addtokomafont{pagehead}{ \sffamily } |
---|
| 32 | \addtokomafont{pagefoot}{ \sffamily \footnotesize} |
---|
| 33 | \addtokomafont{pagenumber}{\sffamily \slshape } |
---|
[14644] | 34 | %\addtokomafont{chapter}{\color{white}} |
---|
[11433] | 35 | |
---|
[14644] | 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} %% "" "" |
---|
[11433] | 48 | |
---|
[14644] | 49 | %% Misc. (caption and footnote) |
---|
| 50 | \captionsetup{font=footnotesize,justification=justified} |
---|
[14113] | 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 | |
---|
[14644] | 59 | %% Catcodes (between `\makeatletter` and `\makeatother`) |
---|
[14113] | 60 | \makeatletter |
---|
[11148] | 61 | |
---|
[14644] | 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}\\ |
---|
[14113] | 71 | } |
---|
[14644] | 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@% |
---|
[14113] | 78 | } |
---|
[14644] | 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@% |
---|
[14113] | 87 | } |
---|
| 88 | |
---|
| 89 | \makeatother |
---|