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

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

Style improvments

File size: 2.1 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%% `\autoref` names (uncapitalize)
22\renewcommand{\appendixautorefname}{appendix}
23\renewcommand{\equationautorefname}{equation}
24\renewcommand{\figureautorefname}{figure}
25%\renewcommand{\listingautorefname}{namelist}
26\renewcommand{\tableautorefname}{table}
27
28%% Footnote
29\renewcommand{\thefootnote}{\fnsymbol{footnote}}
30
31%% Bibliography
32\bibliographystyle{../../global/ametsoc}
33\renewcommand{\bibfont}{\small}
34\renewcommand{\bibpreamble }{\begin{multicols}{2}}
35\renewcommand{\bibpostamble}{  \end{multicols}   }
36
37%% Catcodes
38\makeatletter
39
40%% Prevent error with tikz and namelist inclusion
41\global\let\tikz@ensure@dollar@catcode=\relax
42
43%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty
44\renewcommand{\DOCH}{%
45  \settowidth{\py}{\CNoV\thechapter}
46  \addtolength{\py}{-10pt}      % Amount of space by which the
47%                                  % number is shifted right
48  \fboxsep=0pt%
49  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
50  \kern-\py\raise20pt%
51  \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\%
52}
53\renewcommand{\DOTI}[1]{%
54  \nointerlineskip\raggedright%
55  \fboxsep=\myhi%
56  \vskip-1ex%
57  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
58  \vskip 40\p@%
59}
60\renewcommand{\DOTIS}[1]{%
61  \fboxsep=0pt
62  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%
63  \nointerlineskip\raggedright%
64  \fboxsep=\myhi%
65  \vskip-1ex% Remove white 1pt line
66  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
67  \vskip 40\p@%
68}
69
70\makeatother
Note: See TracBrowser for help on using the repository browser.