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 @ 11563

Last change on this file since 11563 was 11563, checked in by nicolasmartin, 5 years ago

Miscellaneous changes

File size: 1.8 KB
Line 
1
2%% Styles
3%% ==============================================================================
4
5%% Colors
6\setmanualcolor
7\colorlet{manualcolorshaded}{manualcolor!60}
8\definecolor{orcidcolor}{HTML}{A6CE39}
9
10%% Page layout
11\pagestyle{scrheadings}
12\addtokomafont{pagehead}{  \sffamily              }
13\addtokomafont{pagefoot}{  \sffamily \footnotesize}
14\addtokomafont{pagenumber}{\sffamily \slshape     }
15\addtokomafont{chapter}{\color{white}}
16\ohead{} \ofoot{}   %% Clear defaults
17
18%% Caption
19\captionsetup{font = footnotesize, justification = justified}
20
21%% Footnote
22\renewcommand{\thefootnote}{\fnsymbol{footnote}}
23
24%% Bibliography
25\bibliographystyle{../../global/ametsoc}
26\renewcommand{\bibfont}{\small}
27\renewcommand{\bibpreamble }{\begin{multicols}{2}}
28\renewcommand{\bibpostamble}{  \end{multicols}   }
29
30%% Catcodes
31\makeatletter
32
33%% Prevent error with tikz and namelist inclusion
34\global\let\tikz@ensure@dollar@catcode=\relax
35
36%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty
37\renewcommand{\DOCH}{%
38  \settowidth{\py}{\CNoV\thechapter}
39  \addtolength{\py}{-10pt}      % Amount of space by which the
40%                                  % number is shifted right
41  \fboxsep=0pt%
42  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
43  \kern-\py\raise20pt%
44  \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\%
45}
46\renewcommand{\DOTI}[1]{%
47  \nointerlineskip\raggedright%
48  \fboxsep=\myhi%
49  \vskip-1ex%
50  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
51  \vskip 40\p@%
52}
53\renewcommand{\DOTIS}[1]{%
54  \fboxsep=0pt
55  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%
56  \nointerlineskip\raggedright%
57  \fboxsep=\myhi%
58  \vskip-1ex% Remove white 1pt line
59  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
60  \vskip 40\p@%
61}
62
63\makeatother
Note: See TracBrowser for help on using the repository browser.