source:
NEMO/trunk/doc/latex/global/styles.tex
@
11562
Last change on this file since 11562 was 11515, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 1.8 KB |
Rev | Line | |
---|---|---|
[11187] | 1 | |
[11148] | 2 | %% Styles |
3 | %% ============================================================================== | |
[11170] | 4 | |
[11515] | 5 | %% Colors |
6 | \setmanualcolor | |
7 | \colorlet{manualcolorshaded}{manualcolor!60} | |
[11433] | 8 | \definecolor{orcidcolor}{HTML}{A6CE39} |
[11148] | 9 | |
[11433] | 10 | %% Page layout |
11 | \pagestyle{scrheadings} | |
12 | \addtokomafont{pagehead}{ \sffamily } | |
13 | \addtokomafont{pagefoot}{ \sffamily \footnotesize} | |
14 | \addtokomafont{pagenumber}{\sffamily \slshape } | |
[11515] | 15 | \addtokomafont{chapter}{\color{white}} |
[11433] | 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} } | |
[11148] | 26 | |
[11433] | 27 | %% Catcodes |
28 | \makeatletter | |
[11148] | 29 | |
[11433] | 30 | %% Prevent error with tikz and namelist inclusion |
31 | \global\let\tikz@ensure@dollar@catcode=\relax | |
32 | ||
[11515] | 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 | } | |
[11187] | 59 | |
[11433] | 60 | \makeatother |
Note: See TracBrowser
for help on using the repository browser.