X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=common%2Fsettings.tex;h=687f4c454c561b307da9dc2111e1d0b2e3c3c2b7;hb=c278d96d7ed81360c28229941fd5fb627777af04;hp=d63ef04fc44688192097909aab193a22aaef6dfe;hpb=62445ba04006fc8cebde23f8bc0161089c204422;p=goodguy%2Fcin-manual-latex.git diff --git a/common/settings.tex b/common/settings.tex index d63ef04..687f4c4 100644 --- a/common/settings.tex +++ b/common/settings.tex @@ -10,7 +10,18 @@ \setsecnumdepth{subsubsection} % section numeration depth +% Redefine Chapters and Sections +% https://tex.stackexchange.com/questions/476735/change-chapter-and-section-color-memoir-class +\usepackage{xcolor} +% define colors +\definecolor{chaptercolour}{RGB}{23,85,142} +\definecolor{sectioncolour}{RGB}{23,85,142} +\definecolor{subsectioncolour}{RGB}{23,85,142} +%\definecolor{subsubsectioncolour}{RGB}{23,85,142} +\setparaheadstyle{\Large\bfseries\color{sectioncolour}}% +\setsecheadstyle{\Large\bfseries\color{sectioncolour}}% Set \section style +\setsubsecheadstyle{\large\bfseries\color{subsectioncolour}}% Set \subsection style %\pagestyle{plain} %\pagenumbering{roman} @@ -28,7 +39,23 @@ %\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}}