|
36 | 36 | \usepackage{booktabs} % Required for nicer horizontal rules in tables
|
37 | 37 |
|
38 | 38 | \usepackage{xcolor} % Required for specifying colors by name
|
39 |
| -\definecolor{ocre}{RGB}{243,102,25} % Define the orange color used for highlighting throughout the book |
| 39 | +\definecolor{hhublue}{RGB}{0,106,179} % Define the orange color used for highlighting throughout the book |
40 | 40 |
|
41 | 41 | %----------------------------------------------------------------------------------------
|
42 | 42 | % FONTS
|
|
80 | 80 | % Chapter text styling
|
81 | 81 | \titlecontents{chapter}[1.25cm] % Indentation
|
82 | 82 | {\addvspace{12pt}\large\sffamily\bfseries} % Spacing and font options for chapters
|
83 |
| -{\color{ocre!60}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{ocre}} % Chapter number |
84 |
| -{\color{ocre}} |
85 |
| -{\color{ocre!60}\normalsize\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number |
| 83 | +{\color{hhublue!70}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{hhublue}} % Chapter number |
| 84 | +{\color{hhublue}} |
| 85 | +{\color{hhublue!70}\normalsize\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number |
86 | 86 |
|
87 | 87 | % Section text styling
|
88 | 88 | \titlecontents{section}[1.25cm] % Indentation
|
|
123 | 123 | % Chapter text styling
|
124 | 124 | \titlecontents{lchapter}[0em] % Indenting
|
125 | 125 | {\addvspace{15pt}\large\sffamily\bfseries} % Spacing and font options for chapters
|
126 |
| -{\color{ocre}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{ocre}} % Chapter number |
| 126 | +{\color{hhublue}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{hhublue}} % Chapter number |
127 | 127 | {}
|
128 |
| -{\color{ocre}\normalsize\sffamily\bfseries\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number |
| 128 | +{\color{hhublue}\normalsize\sffamily\bfseries\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number |
129 | 129 |
|
130 | 130 | % Section text styling
|
131 | 131 | \titlecontents{lsection}[0em] % Indenting
|
|
180 | 180 | \newtheorem{notation}{Notation}[chapter]
|
181 | 181 |
|
182 | 182 | % Boxed/framed environments
|
183 |
| -\newtheoremstyle{ocrenumbox}% % Theorem style name |
| 183 | +\newtheoremstyle{hhubluenumbox}% % Theorem style name |
184 | 184 | {0pt}% Space above
|
185 | 185 | {0pt}% Space below
|
186 | 186 | {\normalfont}% % Body font
|
187 | 187 | {}% Indent amount
|
188 |
| -{\small\bf\sffamily\color{ocre}}% % Theorem head font |
| 188 | +{\small\bf\sffamily\color{hhublue}}% % Theorem head font |
189 | 189 | {\;}% Punctuation after theorem head
|
190 | 190 | {0.25em}% Space after theorem head
|
191 |
| -{\small\sffamily\color{ocre}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1) |
| 191 | +{\small\sffamily\color{hhublue}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1) |
192 | 192 | \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries\color{black}---\nobreakspace#3.}} % Optional theorem note
|
193 | 193 | \renewcommand{\qedsymbol}{$\blacksquare$}% Optional qed square
|
194 | 194 |
|
|
215 | 215 | \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries---\nobreakspace#3.}}% Optional theorem note
|
216 | 216 |
|
217 | 217 | % Non-boxed/non-framed environments
|
218 |
| -\newtheoremstyle{ocrenum}% % Theorem style name |
| 218 | +\newtheoremstyle{hhubluenum}% % Theorem style name |
219 | 219 | {5pt}% Space above
|
220 | 220 | {5pt}% Space below
|
221 | 221 | {\normalfont}% % Body font
|
222 | 222 | {}% Indent amount
|
223 |
| -{\small\bf\sffamily\color{ocre}}% % Theorem head font |
| 223 | +{\small\bf\sffamily\color{hhublue}}% % Theorem head font |
224 | 224 | {\;}% Punctuation after theorem head
|
225 | 225 | {0.25em}% Space after theorem head
|
226 |
| -{\small\sffamily\color{ocre}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1) |
| 226 | +{\small\sffamily\color{hhublue}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1) |
227 | 227 | \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries\color{black}---\nobreakspace#3.}} % Optional theorem note
|
228 | 228 | \renewcommand{\qedsymbol}{$\blacksquare$}% Optional qed square
|
229 | 229 | \makeatother
|
230 | 230 |
|
231 | 231 | % Defines the theorem text style for each type of theorem to one of the three styles above
|
232 | 232 | \newcounter{dummy}
|
233 | 233 | \numberwithin{dummy}{section}
|
234 |
| -\theoremstyle{ocrenumbox} |
| 234 | +\theoremstyle{hhubluenumbox} |
235 | 235 | \newtheorem{theoremeT}[dummy]{Theorem}
|
236 | 236 | \newtheorem{problem}{Problem}[chapter]
|
237 | 237 | \newtheorem{exerciseT}{Exercise}[chapter]
|
|
241 | 241 | \newtheorem{vocabulary}{Vocabulary}[chapter]
|
242 | 242 | \newtheorem{definitionT}{Definition}[section]
|
243 | 243 | \newtheorem{corollaryT}[dummy]{Corollary}
|
244 |
| -\theoremstyle{ocrenum} |
| 244 | +\theoremstyle{hhubluenum} |
245 | 245 | \newtheorem{proposition}[dummy]{Proposition}
|
246 | 246 |
|
247 | 247 | %----------------------------------------------------------------------------------------
|
|
254 | 254 | \newmdenv[skipabove=7pt,
|
255 | 255 | skipbelow=7pt,
|
256 | 256 | backgroundcolor=black!5,
|
257 |
| -linecolor=ocre, |
| 257 | +linecolor=hhublue, |
258 | 258 | innerleftmargin=5pt,
|
259 | 259 | innerrightmargin=5pt,
|
260 | 260 | innertopmargin=5pt,
|
|
269 | 269 | leftline=true,
|
270 | 270 | topline=false,
|
271 | 271 | bottomline=false,
|
272 |
| -backgroundcolor=ocre!10, |
273 |
| -linecolor=ocre, |
| 272 | +backgroundcolor=hhublue!10, |
| 273 | +linecolor=hhublue, |
274 | 274 | innerleftmargin=5pt,
|
275 | 275 | innerrightmargin=5pt,
|
276 | 276 | innertopmargin=5pt,
|
|
286 | 286 | leftline=true,
|
287 | 287 | topline=false,
|
288 | 288 | bottomline=false,
|
289 |
| -linecolor=ocre, |
| 289 | +linecolor=hhublue, |
290 | 290 | innerleftmargin=5pt,
|
291 | 291 | innerrightmargin=5pt,
|
292 | 292 | innertopmargin=0pt,
|
|
314 | 314 |
|
315 | 315 | % Creates an environment for each type of theorem and assigns it a theorem text style from the "Theorem Styles" section above and a colored box from above
|
316 | 316 | \newenvironment{theorem}{\begin{tBox}\begin{theoremeT}}{\end{theoremeT}\end{tBox}}
|
317 |
| -\newenvironment{exercise}{\begin{eBox}\begin{exerciseT}}{\hfill{\color{ocre}\tiny\ensuremath{\blacksquare}}\end{exerciseT}\end{eBox}} |
| 317 | +\newenvironment{exercise}{\begin{eBox}\begin{exerciseT}}{\hfill{\color{hhublue}\tiny\ensuremath{\blacksquare}}\end{exerciseT}\end{eBox}} |
318 | 318 | \newenvironment{definition}{\begin{dBox}\begin{definitionT}}{\end{definitionT}\end{dBox}}
|
319 | 319 | \newenvironment{example}{\begin{exampleT}}{\hfill{\tiny\ensuremath{\blacksquare}}\end{exampleT}}
|
320 | 320 | \newenvironment{corollary}{\begin{cBox}\begin{corollaryT}}{\end{corollaryT}\end{cBox}}
|
|
328 | 328 | \leftmargin=35pt % Indentation on the left
|
329 | 329 | \rightmargin=25pt}\item\ignorespaces % Indentation on the right
|
330 | 330 | \makebox[-2.5pt]{\begin{tikzpicture}[overlay]
|
331 |
| -\node[draw=ocre!60,line width=1pt,circle,fill=ocre!25,font=\sffamily\bfseries,inner sep=2pt,outer sep=0pt] at (-15pt,0pt){\textcolor{ocre}{R}};\end{tikzpicture}} % Orange R in a circle |
| 331 | +\node[draw=hhublue!70,line width=1pt,circle,fill=hhublue!25,font=\sffamily\bfseries,inner sep=2pt,outer sep=0pt] at (-15pt,0pt){\textcolor{hhublue}{R}};\end{tikzpicture}} % Orange R in a circle |
332 | 332 | \advance\baselineskip -1pt}{\end{list}\vskip5pt} % Tighter line spacing and white space after remark
|
333 | 333 |
|
334 | 334 | %----------------------------------------------------------------------------------------
|
335 | 335 | % SECTION NUMBERING IN THE MARGIN
|
336 | 336 | %----------------------------------------------------------------------------------------
|
337 | 337 |
|
338 | 338 | \makeatletter
|
339 |
| -\renewcommand{\@seccntformat}[1]{\llap{\textcolor{ocre}{\csname the#1\endcsname}\hspace{1em}}} |
| 339 | +\renewcommand{\@seccntformat}[1]{\llap{\textcolor{hhublue}{\csname the#1\endcsname}\hspace{1em}}} |
340 | 340 | \renewcommand{\section}{\@startsection{section}{1}{\z@}
|
341 | 341 | {-4ex \@plus -1ex \@minus -.4ex}
|
342 | 342 | {1ex \@plus.2ex }
|
|
361 | 361 | % numbered part in the table of contents
|
362 | 362 | \newcommand{\@mypartnumtocformat}[2]{%
|
363 | 363 | \setlength\fboxsep{0pt}%
|
364 |
| -\noindent\colorbox{ocre!20}{\strut\parbox[c][.7cm]{\ecart}{\color{ocre!70}\Large\sffamily\bfseries\centering#1}}\hskip\esp\colorbox{ocre!40}{\strut\parbox[c][.7cm]{\linewidth-\ecart-\esp}{\Large\sffamily\centering#2}}}% |
| 364 | +\noindent\colorbox{hhublue!30}{\strut\parbox[c][.7cm]{\ecart}{\color{hhublue!70}\Large\sffamily\bfseries\centering#1}}\hskip\esp\colorbox{hhublue!50}{\strut\parbox[c][.7cm]{\linewidth-\ecart-\esp}{\Large\sffamily\centering#2}}}% |
365 | 365 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
366 | 366 | % unnumbered part in the table of contents
|
367 | 367 | \newcommand{\@myparttocformat}[1]{%
|
368 | 368 | \setlength\fboxsep{0pt}%
|
369 |
| -\noindent\colorbox{ocre!40}{\strut\parbox[c][.7cm]{\linewidth}{\Large\sffamily\centering#1}}}% |
| 369 | +\noindent\colorbox{hhublue!50}{\strut\parbox[c][.7cm]{\linewidth}{\Large\sffamily\centering#1}}}% |
370 | 370 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
371 | 371 | \newlength\esp
|
372 | 372 | \setlength\esp{4pt}
|
|
386 | 386 | {\thispagestyle{empty}%
|
387 | 387 | \begin{tikzpicture}[remember picture,overlay]%
|
388 | 388 | \node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%
|
389 |
| -\fill[ocre!20](0cm,0cm) rectangle (\paperwidth,-\paperheight); |
390 |
| -\node[anchor=north] at (4cm,-3.25cm){\color{ocre!40}\fontsize{220}{100}\sffamily\bfseries\@Roman\c@part}; |
| 389 | +\fill[hhublue!30](0cm,0cm) rectangle (\paperwidth,-\paperheight); |
| 390 | +\node[anchor=north] at (4cm,-3.25cm){\color{hhublue!50}\fontsize{220}{100}\sffamily\bfseries\@Roman\c@part}; |
391 | 391 | \node[anchor=south east] at (\paperwidth-1cm,-\paperheight+1cm){\parbox[t][][t]{8.5cm}{
|
392 | 392 | \printcontents{l}{0}{\setcounter{tocdepth}{1}}%
|
393 | 393 | }};
|
|
401 | 401 | {\thispagestyle{empty}%
|
402 | 402 | \begin{tikzpicture}[remember picture,overlay]%
|
403 | 403 | \node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%
|
404 |
| -\fill[ocre!20](0cm,0cm) rectangle (\paperwidth,-\paperheight); |
| 404 | +\fill[hhublue!30](0cm,0cm) rectangle (\paperwidth,-\paperheight); |
405 | 405 | \node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{white}\fontsize{30}{30}\sffamily\bfseries#1}};
|
406 | 406 | \end{tikzpicture}};
|
407 | 407 | \end{tikzpicture}}
|
408 | 408 | \addcontentsline{toc}{part}{\texorpdfstring{%
|
409 | 409 | \setlength\fboxsep{0pt}%
|
410 |
| -\noindent\protect\colorbox{ocre!40}{\strut\protect\parbox[c][.7cm]{\linewidth}{\Large\sffamily\protect\centering #1\quad\mbox{}}}}{#1}}% |
| 410 | +\noindent\protect\colorbox{hhublue!50}{\strut\protect\parbox[c][.7cm]{\linewidth}{\Large\sffamily\protect\centering #1\quad\mbox{}}}}{#1}}% |
411 | 411 | \@endpart}
|
412 | 412 | \def\@endpart{\vfil\newpage
|
413 | 413 | \if@twoside
|
|
438 | 438 | \node at (current page.north west)
|
439 | 439 | {\begin{tikzpicture}[remember picture,overlay]
|
440 | 440 | \node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
441 |
| -\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; |
| 441 | +\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=hhublue,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; |
442 | 442 | \draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}\thechapter. #1\strut};
|
443 | 443 | \end{tikzpicture}};
|
444 | 444 | \end{tikzpicture}
|
|
447 | 447 | \node at (current page.north west)
|
448 | 448 | {\begin{tikzpicture}[remember picture,overlay]
|
449 | 449 | \node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
450 |
| -\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; |
| 450 | +\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=hhublue,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; |
451 | 451 | \draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut};
|
452 | 452 | \end{tikzpicture}};
|
453 | 453 | \end{tikzpicture}
|
|
460 | 460 | \node at (current page.north west)
|
461 | 461 | {\begin{tikzpicture}[remember picture,overlay]
|
462 | 462 | \node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
463 |
| -\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; |
| 463 | +\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=hhublue,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; |
464 | 464 | \draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut};
|
465 | 465 | \end{tikzpicture}};
|
466 | 466 | \end{tikzpicture}
|
|
472 | 472 | %----------------------------------------------------------------------------------------
|
473 | 473 |
|
474 | 474 | \usepackage{hyperref}
|
475 |
| -\hypersetup{hidelinks,backref=true,pagebackref=true,hyperindex=true,colorlinks=false,breaklinks=true,urlcolor= ocre,bookmarks=true,bookmarksopen=false,pdftitle={Title},pdfauthor={Author}} |
| 475 | +\hypersetup{hidelinks,backref=true,pagebackref=true,hyperindex=true,colorlinks=false,breaklinks=true,urlcolor= hhublue,bookmarks=true,bookmarksopen=false,pdftitle={Title},pdfauthor={Author}} |
476 | 476 | \usepackage{bookmark}
|
477 | 477 | \bookmarksetup{
|
478 | 478 | open,
|
|
482 | 482 | \bookmarksetup{bold}%
|
483 | 483 | \fi
|
484 | 484 | \ifnum\bookmarkget{level}=-1 % part
|
485 |
| -\bookmarksetup{color=ocre,bold}% |
| 485 | +\bookmarksetup{color=hhublue,bold}% |
486 | 486 | \fi
|
487 | 487 | }
|
488 | 488 | }
|
0 commit comments