656a1a2064711cc3956c897522473aa5ec70237b
[goodguy/cin-manual-latex.git] / common / settings.tex
1 %\usepackage[sfdefault]{noto}
2 %====================== Page geometry
3 \usepackage{geometry}               % page geometry
4 \geometry{left=2.0cm}
5 \geometry{right=2.0cm}
6 \geometry{top=2.0cm}
7 \geometry{bottom=2.0cm}
8 \parindent=0.0cm                    % first indent in section
9 \righthyphenmin=2                   % hyphen last charecter
10
11 \setsecnumdepth{subsubsection}          % section numeration depth
12
13 % Redefine Chapters and Sections\r
14 % https://tex.stackexchange.com/questions/476735/change-chapter-and-section-color-memoir-class\r
15 \usepackage{xcolor}\r
16 % define colors\r
17 \definecolor{chaptercolour}{RGB}{23,85,142}\r
18 \definecolor{sectioncolour}{RGB}{23,85,142}\r
19 \definecolor{subsectioncolour}{RGB}{23,85,142}\r
20 %\definecolor{subsubsectioncolour}{RGB}{23,85,142}\r
21
22 \definecolor{CinBlueText}{RGB}{23,85,142}
23 % \definecolor{CinBlue}{RGB}{35,134,220}
24 \definecolor{CinRed}{RGB}{205,38,11}
25 % \definecolor{CinOrange}{RGB}{250,125,0}
26 % \definecolor{CinGreen}{RGB}{205,38,11}
27
28 \setparaheadstyle{\Large\bfseries\color{sectioncolour}}%\r
29 \setsecheadstyle{\Large\bfseries\color{sectioncolour}}% Set \section style\r
30 \setsubsecheadstyle{\large\bfseries\color{subsectioncolour}}% Set \subsection style
31
32 %\pagestyle{plain}
33 %\pagenumbering{roman}
34 %\renewcommand{\chapterheadstart}{
35 %%\vspace*{\beforechapskip}
36 %\hrule\medskip}
37 %\renewcommand{\chapnamefont}{\normalfont\large\scshape}
38 %\renewcommand{\chapnumfont}{\normalfont\large\scshape}
39 %\renewcommand{\chaptitlefont}{\normalfont\large\scshape}
40 %\renewcommand{\printchaptername}{\normalfont\large\scshape История}
41 %\renewcommand{\chapternamenum}{ }
42 %\renewcommand{\printchapternum}{\chapnumfont \thechapter}
43 %\renewcommand{\afterchapternum}{. }
44 %\renewcommand{\afterchapskip}{\vspace{2ex}}
45 %\renewcommand{\afterchaptertitle}{\par\nobreak\medskip\hrule\vskip 
46 %\afterchapskip}
47 %}
48 %\chapterstyle{madsen}          % one of chapter header style for memoir documentclass
49 \makechapterstyle{morrow}{% requires graphicx package
50   \chapterstyle{default}%
51   \renewcommand*{\chapnamefont}{%
52     \normalfont\Large\scshape\raggedleft}%
53   \renewcommand*{\chapnumfont}{%
54     \normalfont\Large\bfseries\sffamily}%
55   \renewcommand*{\printchapternum}{%
56     \chapnumfont \resizebox{!}{3ex}{\thechapter}%
57   }%
58   \renewcommand*{\chaptitlefont}{%
59     \normalfont\Huge\bfseries\sffamily\raggedleft}%
60   \renewcommand*{\afterchapternum}{%
61     \par\hspace{1.5cm}\hrule\vskip\midchapskip}%
62 }%
63
64 \chapterstyle{morrow}           % one of chapter header style for memoir documentclass
65 %\renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
66 \renewcommand{\chapterheadstart}{}
67 %\renewcommand{\beforechapskip}{\vspace{2pt}}
68
69 %\renewcommand{\@pnumwidth}{3em}  % memoir class, more space between chapter number and text.
70 \setlength{\cftfigurenumwidth}{4em} % memoir class, more space between figure number and text.
71
72 \renewcommand{\nomname}{Glossary}                  % glossary name