Changeset 14644 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/styles.tex
- Timestamp:
- 2021-03-26T15:33:49+01:00 (3 years ago)
- Location:
- NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final
- Property svn:externals
-
old new 9 9 10 10 # SETTE 11 ^/utils/CI/sette _wave@13990sette11 ^/utils/CI/sette@14244 sette
-
- Property svn:externals
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/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/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/styles.tex
r14113 r14644 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,angle=0,opacity=1, 13 contents ={ 14 \begin{tikzpicture}[remember picture,overlay] 15 \path[fill=manclr] (-0.5\paperwidth,7) rectangle (0.5\paperwidth,10); 16 \end{tikzpicture} 17 } 18 } 9 19 10 20 %% Page layout 11 \pagestyle{scrheadings} 21 %\pagestyle{scrheadings} 22 %\renewcommand{\chapterpagestyle}{empty} 23 \renewcommand{\chaptermark}[1]{\markboth{ #1}{}} %% Convert mark to lowercase 24 \renewcommand{\sectionmark}[1]{\markright{#1}{}} %% " "" "" " 25 \ohead{} %% Clear default headings 26 \lohead{Chap. \thechapter\ \leftmark} 27 \rehead{Sect. \thesection\ \rightmark} 28 \ifoot{Page \thepage\ of \pageref*{LastPage}} 29 %\ifoot[\pagemark]{Page \thepage\ of \lastpageref*{pagesLTS.arabic}} 30 \ofoot{\eng\ Reference Manual} 12 31 \addtokomafont{pagehead}{ \sffamily } 13 32 \addtokomafont{pagefoot}{ \sffamily \footnotesize} 14 33 \addtokomafont{pagenumber}{\sffamily \slshape } 15 \addtokomafont{chapter}{\color{white}} 16 \ohead{} \ofoot{} %% Clear defaults 34 %\addtokomafont{chapter}{\color{white}} 17 35 18 %% Caption 19 \captionsetup{font = footnotesize, justification = justified} 36 %% Cross-referencing 37 \hypersetup{ 38 pdftitle=\hdg,pdfauthor=Gurvan Madec and NEMO System Team, 39 pdfsubject=Reference manual of NEMO modelling framework,pdfkeywords=ocean circulation modelling, 40 colorlinks,allcolors=manclr 41 } 42 \renewcommand{\appendixautorefname}{appendix} %% `\autoref` uncapitalization 43 \renewcommand{\equationautorefname}{equation} %% "" "" 44 \renewcommand{\figureautorefname }{figure} %% "" "" 45 \renewcommand{\listingname }{namelist} %% "" "" 46 \renewcommand{\listlistingname }{List of Namelists} %% "" "" 47 \renewcommand{\tableautorefname }{table} %% "" "" 20 48 21 %% Footnote 49 %% Misc. (caption and footnote) 50 \captionsetup{font=footnotesize,justification=justified} 22 51 \renewcommand{\thefootnote}{\fnsymbol{footnote}} 23 52 … … 28 57 \renewcommand{\bibpostamble}{ \end{multicols} } 29 58 30 %% Catcodes 59 %% Catcodes (between `\makeatletter` and `\makeatother`) 31 60 \makeatletter 32 61 33 %% Prevent error with tikz and namelist inclusion 34 \global\let\tikz@ensure@dollar@catcode=\relax 35 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 } 62 %% Apply manual color for chap. headings (original snippets from fncychap.sty) 63 %% !!! Let trailing percent sign to avoid space insertion 64 \renewcommand{\DOCH}{% %% Upper box with chapter number 65 \settowidth{\py}{\CNoV\thechapter}% 66 \addtolength{\py}{-10pt}% %% Amount of space by which the number is shifted right 67 \fboxsep=0pt% 68 \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}% 69 \kern-\py\raise20pt% 70 \hbox{\color{manclrshd}\CNoV\thechapter}\\ 71 } 72 \renewcommand{\DOTI}[1]{% %% Lower box with chapter title 73 \nointerlineskip\raggedright% 74 \fboxsep=\myhi% 75 \vskip-1ex% 76 \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 77 \vskip 40\p@% 78 } 79 \renewcommand{\DOTIS}[1]{% %% Box for unumbered chapter 80 \fboxsep=0pt% 81 \colorbox{manclr}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\ 82 \nointerlineskip\raggedright% 83 \fboxsep=\myhi% 84 \vskip-1ex% %% Remove white 1pt line 85 \colorbox{manclr}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak% 86 \vskip 40\p@% 45 87 } 46 88 47 %% Apply engine color for chapter headings: tweaking snippets from fncychap.sty48 \renewcommand{\DOCH}{%49 \settowidth{\py}{\CNoV\thechapter}50 \addtolength{\py}{-10pt} % Amount of space by which the51 % % number is shifted right52 \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=0pt66 \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%67 \nointerlineskip\raggedright%68 \fboxsep=\myhi%69 \vskip-1ex% Remove white 1pt line70 \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%71 \vskip 40\p@%72 }73 74 %% Temporary fix75 \def\set@curr@file#1{%76 \begingroup77 \escapechar\m@ne78 \xdef\@curr@file{\expandafter\string\csname #1\endcsname}%79 \endgroup80 }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"}84 85 89 \makeatother
Note: See TracChangeset
for help on using the changeset viewer.