Changeset 14257 for NEMO/trunk/doc/latex/global/styles.tex
- Timestamp:
- 2021-01-04T16:13:36+01:00 (3 years ago)
- Location:
- NEMO/trunk/doc/latex/global
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/doc/latex/global
-
Property
svn:ignore
set to
*.aux
*.bbl
*.blg
*.fdb*
*.fls
*.idx
*.ilg
*.ind
*.lo*
*.out
*.toc
*.xdv
cache*
-
Property
svn:ignore
set to
-
NEMO/trunk/doc/latex/global/styles.tex
r14113 r14257 1 1 %% ================================================================================================= 2 2 %% Styles 3 %% ============================================================================== 3 %% ================================================================================================= 4 4 5 5 %% Colors 6 \setmanualcolor 7 \colorlet{manualcolorshaded}{manualcolor!60} 8 \definecolor{orcidcolor}{HTML}{A6CE39} 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 9 10 %% Cover page 11 \backgroundsetup{ 12 firstpage=true,scale =1, 13 angle =0 ,opacity=1, 14 contents ={ 15 \begin{tikzpicture}[remember picture,overlay] 16 \path[fill=manclr] (-0.5\paperwidth,7) rectangle (0.5\paperwidth,10); 17 \end{tikzpicture} 18 } 19 } 9 20 10 21 %% Page layout 11 \pagestyle{scrheadings} 22 %\pagestyle{scrheadings} 23 %\renewcommand{\chapterpagestyle}{empty} 24 \renewcommand{\chaptermark}[1]{ \markboth{#1}{}} %% Convert mark to lowercase 25 \renewcommand{\sectionmark}[1]{\markright{#1}{}} %% " "" "" " 26 \ohead{} %% Clear default headings 27 \lohead{Chap. \thechapter\ \leftmark} 28 \rehead{Sect. \thesection\ \rightmark} 29 \ifoot{Page \thepage\ of \pageref*{LastPage}} 30 %\ifoot[\pagemark]{Page \thepage\ of \lastpageref*{pagesLTS.arabic}} 31 \ofoot{\eng\ Reference Manual} 12 32 \addtokomafont{pagehead}{ \sffamily } 13 33 \addtokomafont{pagefoot}{ \sffamily \footnotesize} 14 34 \addtokomafont{pagenumber}{\sffamily \slshape } 15 \addtokomafont{chapter}{\color{white}} 16 \ohead{} \ofoot{} %% Clear defaults 35 %\addtokomafont{chapter}{\color{white}} 17 36 18 %% Caption 19 \captionsetup{font = footnotesize, justification = justified} 37 %% Cross-referencing 38 \hypersetup{ 39 pdftitle=\hdg , 40 pdfauthor=Gurvan Madec and NEMO System Team , 41 pdfsubject=Reference manual of NEMO modelling framework, 42 pdfkeywords=ocean circulation modelling , 43 colorlinks , 44 allcolors=manclr 45 } 46 \renewcommand{\appendixautorefname}{appendix} %% `\autoref` uncapitalization 47 \renewcommand{\equationautorefname}{equation} %% "" "" 48 \renewcommand{\figureautorefname }{figure} %% "" "" 49 \renewcommand{\listingname }{namelist} %% "" "" 50 \renewcommand{\listlistingname }{List of Namelists} %% "" "" 51 \renewcommand{\tableautorefname }{table} %% "" "" 20 52 21 %% Footnote 53 %% Misc. (caption and footnote) 54 \captionsetup{font=footnotesize,justification=justified} 22 55 \renewcommand{\thefootnote}{\fnsymbol{footnote}} 23 56 … … 28 61 \renewcommand{\bibpostamble}{ \end{multicols} } 29 62 30 %% Catcodes 63 %% Catcodes (between `\makeatletter` and `\makeatother`) 31 64 \makeatletter 32 65 33 %% Prevent error with tikz and namelist inclusion 34 \global\let\tikz@ensure@dollar@catcode=\relax 66 %\global\let\tikz@ensure@dollar@catcode=\relax %% Prevent error with tikz and namelist inclusion 35 67 36 %% First page 37 \backgroundsetup{ 38 firstpage = true, 39 scale = 1, angle = 0, opacity = 1, 40 contents = { 41 \begin{tikzpicture}[remember picture, overlay] 42 \path [fill = manualcolor] (-0.5\paperwidth, 7) rectangle (0.5\paperwidth, 10); 43 \end{tikzpicture} 44 } 68 %% Apply manual color for chap. headings (original snippets from fncychap.sty) 69 %% !!! Let trailing percent sign to avoid space insertion 70 \renewcommand{\DOCH}{% %% Upper box with chapter number 71 \settowidth{\py}{\CNoV\thechapter}% 72 \addtolength{\py}{-10pt}% %% Amount of space by which the number is shifted right 73 \fboxsep=0pt% 74 \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}% 75 \kern-\py\raise20pt% 76 \hbox{\color{manclrshd}\CNoV\thechapter}\\ 77 } 78 \renewcommand{\DOTI}[1]{% %% Lower box with chapter title 79 \nointerlineskip\raggedright% 80 \fboxsep=\myhi% 81 \vskip-1ex% 82 \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 83 \vskip 40\p@% 84 } 85 \renewcommand{\DOTIS}[1]{% %% Box for unumbered chapter 86 \fboxsep=0pt% 87 \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\ 88 \nointerlineskip\raggedright% 89 \fboxsep=\myhi% 90 \vskip-1ex% %% Remove white 1pt line 91 \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 92 \vskip 40\p@% 45 93 } 46 94 47 %% Apply engine color for chapter headings: tweaking snippets from fncychap.sty 48 \renewcommand{\DOCH}{% 49 \settowidth{\py}{\CNoV\thechapter} 50 \addtolength{\py}{-10pt} % Amount of space by which the 51 % % number is shifted right 52 \fboxsep=0pt% 53 \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}% 54 \kern-\py\raise20pt% 55 \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\% 56 } 57 \renewcommand{\DOTI}[1]{% 58 \nointerlineskip\raggedright% 59 \fboxsep=\myhi% 60 \vskip-1ex% 61 \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 62 \vskip 40\p@% 63 } 64 \renewcommand{\DOTIS}[1]{% 65 \fboxsep=0pt 66 \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\% 67 \nointerlineskip\raggedright% 68 \fboxsep=\myhi% 69 \vskip-1ex% Remove white 1pt line 70 \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 71 \vskip 40\p@% 72 } 73 74 %% Temporary fix 75 \def\set@curr@file#1{% 76 \begingroup 77 \escapechar\m@ne 78 \xdef\@curr@file{\expandafter\string\csname #1\endcsname}% 79 \endgroup 80 } 81 \def\quote@name#1{"\quote@@name#1\@gobble""} 82 \def\quote@@name#1"{#1\quote@@name} 83 \def\unquote@name#1{\quote@@name#1\@gobble"} 95 %% Temporary fix? 96 %\def\set@curr@file#1{ 97 % \begingroup 98 % \escapechar\m@ne 99 % \xdef\@curr@file{\expandafter\string\csname #1\endcsname} 100 % \endgroup 101 %} 102 %\def\quote@name#1{"\quote@@name#1\@gobble""} 103 %\def\quote@@name#1"{#1\quote@@name} 104 %\def\unquote@name#1{\quote@@name#1\@gobble"} 84 105 85 106 \makeatother
Note: See TracChangeset
for help on using the changeset viewer.