minor MatN change and recommendations + removed some bash +changed some href to hyperref
[goodguy/cin-manual-latex.git] / common / settings.tex
index aa6a2bd65446e412848c3e6f5153fc65bc46fe2b..0ad962c72fde900bc7cc32f418043b883bb98a91 100644 (file)
@@ -4,13 +4,24 @@
 \geometry{left=2.0cm}
 \geometry{right=2.0cm}
 \geometry{top=2.0cm}
-\geometry{bottom=1.5cm}
-\parindent=1.0cm                    % first indent in section
+\geometry{bottom=2.0cm}
+\parindent=0.0cm                    % first indent in section
 \righthyphenmin=2                   % hyphen last charecter
 
-\setsecnumdepth{subsubsection} % section numration depth
+\setsecnumdepth{subsubsection}                 % section numeration depth
 
+% Redefine Chapters and Sections\r
+% https://tex.stackexchange.com/questions/476735/change-chapter-and-section-color-memoir-class\r
+\usepackage{xcolor}\r
+% define colors\r
+\definecolor{chaptercolour}{RGB}{23,85,142}\r
+\definecolor{sectioncolour}{RGB}{23,85,142}\r
+\definecolor{subsectioncolour}{RGB}{23,85,142}\r
+%\definecolor{subsubsectioncolour}{RGB}{23,85,142}\r
 
+\setparaheadstyle{\Large\bfseries\color{sectioncolour}}%\r
+\setsecheadstyle{\Large\bfseries\color{sectioncolour}}% Set \section style\r
+\setsubsecheadstyle{\large\bfseries\color{subsectioncolour}}% Set \subsection style
 
 %\pagestyle{plain}
 %\pagenumbering{roman}
 %\renewcommand{\afterchaptertitle}{\par\nobreak\medskip\hrule\vskip 
 %\afterchapskip}
 %}
-\chapterstyle{madsen}         % one of chapter header style for memoir documentclass
+%\chapterstyle{madsen}         % one of chapter header style for memoir documentclass
+\makechapterstyle{morrow}{% requires graphicx package
+  \chapterstyle{default}%
+  \renewcommand*{\chapnamefont}{%
+    \normalfont\Large\scshape\raggedleft}%
+  \renewcommand*{\chapnumfont}{%
+    \normalfont\Large\bfseries\sffamily}%
+  \renewcommand*{\printchapternum}{%
+    \chapnumfont \resizebox{!}{3ex}{\thechapter}%
+  }%
+  \renewcommand*{\chaptitlefont}{%
+    \normalfont\Huge\bfseries\sffamily\raggedleft}%
+  \renewcommand*{\afterchapternum}{%
+    \par\hspace{1.5cm}\hrule\vskip\midchapskip}%
+}%
+
+\chapterstyle{morrow}          % one of chapter header style for memoir documentclass
 %\renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
 \renewcommand{\chapterheadstart}{}
 %\renewcommand{\beforechapskip}{\vspace{2pt}}
 
+%\renewcommand{\@pnumwidth}{3em}  % memoir class, more space between chapter number and text.
+\setlength{\cftfigurenumwidth}{4em} % memoir class, more space between figure number and text.
 
 \renewcommand{\nomname}{Glossary}                  % glossary name