I'm trying to customize the book
class chapter headings.
Something similar to memoir Hansen
chapter style might be cool.
But I'm quite stuck right now since I can't make the chapter title overlap the chapter number.
Here is the code I use.
Any help would be very much appreciated.
\newcommand{\chapnumfont}{%
\raggedleft%
\usefont{T1}{jkp}{b}{n}%
\fontsize{100}{130}\selectfont%
\color{DarkCyan}\raggedleft}
\newcommand{\chaptitlefont}{%
\raggedleft%
\usefont{T1}{qhv}{b}{n}%
\fontsize{22}{1pt}\selectfont%
\color{Black}}
\newcommand\thickhrule{\leavevmode \leaders \hrule height 2pt \hfill \kern \z@}
\makeatletter
\renewcommand{\@makechapterhead}[1]{%
\vspace*{10\p@}%
{\parindent \z@ \reset@font%
\parbox{.2\textwidth}{\chapnumfont \thechapter }
{\raggedleft\chaptitlefont #1\par\nobreak}%
\par\nobreak
\vspace*{20\p@}%
\thickhrule
\vskip 40\p@
\vskip 100\p@
}}
\makeatother
To extend the question, now that I realize the chapter number may not be visible enough, how would you do make the same thing but avoid the title overlapping the number?
Basically the same as below but the number on the other side.
This picture as been produced with the following code.
\titleformat{\chapter}
{\thispagestyle{empty}\vspace{50pt}\normalfont\huge\bfseries}
{\filleft{\parbox{.2\textwidth}{\chapnumfont\color{chapnumcolor}\thechapter}}}
{0pt}
{\Huge{\parbox{.8\textwidth}{\chaptitlefont #1}}}[\vspace{2ex}{\titlerule[2pt]}]