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

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

Style changes

  • logo for DOI links
  • Tweak cmds to apply manual color to chapter headings
  • Fix headings on bibliography and indexes sections
  • Remove minitoc pkg and use instead appropriate \chaptertoc custom cmd
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%% Bibliography
22\bibliographystyle{../../global/ametsoc}
23\renewcommand{\bibfont}{\small}
24\renewcommand{\bibpreamble }{\begin{multicols}{2}}
25\renewcommand{\bibpostamble}{  \end{multicols}   }
26
27%% Catcodes
28\makeatletter
29
30%% Prevent error with tikz and namelist inclusion
31\global\let\tikz@ensure@dollar@catcode=\relax
32
33%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty
34\renewcommand{\DOCH}{%
35  \settowidth{\py}{\CNoV\thechapter}
36  \addtolength{\py}{-10pt}      % Amount of space by which the
37%                                  % number is shifted right
38  \fboxsep=0pt%
39  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
40  \kern-\py\raise20pt%
41  \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\%
42}
43\renewcommand{\DOTI}[1]{%
44  \nointerlineskip\raggedright%
45  \fboxsep=\myhi%
46  \vskip-1ex%
47  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
48  \vskip 40\p@%
49}
50\renewcommand{\DOTIS}[1]{%
51  \fboxsep=0pt
52  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%
53  \nointerlineskip\raggedright%
54  \fboxsep=\myhi%
55  \vskip-1ex% Remove white 1pt line
56  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
57  \vskip 40\p@%
58}
59
60\makeatother
Note: See TracBrowser for help on using the repository browser.