[Tex/LaTex] Chapter Heading Design

chapters

I'd like to design a chapter heading similar to the one in the picture below. I like to put a line between the number and the chapter name and also align the the chapter name to the left. I'm using the document class book. Any ideas how to do it?

enter image description here

Best Answer

You can build your own chapterstyle with the titlesec package:

\documentclass{report}
\usepackage[explicit]{titlesec}
\usepackage{lipsum}
\usepackage{type1cm}
\usepackage{xcolor}


\titleformat{\chapter}[display]
  {\normalfont\Large\rmfamily}
  {\sffamily\flushright\fontsize{60}{0}\textbf{\textcolor{black!20}{{\Huge\chaptername}~\thechapter\vskip0pt\rule{\textwidth}{2pt}}}}{0pt}
  {\flushleft\fontsize{30}{0}{#1}\vskip60pt}
\titlespacing*{\chapter}
  {0pt}{-40pt}{0pt}

\begin{document}
\chapter{Enjoy the whitespace}

 \lipsum[1]
\end{document}

The type1cm package is required for the font size.

Related Question