Memoir – Customizing Chapter Style in Report Class

chaptersmemoirreport

enter image description here

I am looking for different types of chapter style formats for report class document. i like memoir class Veelo chapter style. how to do exactly the same format for report class document class

\documentclass{memoir} 
\usepackage{graphicx} 
\stockaiv 
\settrimmedsize{242mm}{165mm}{} 
\settrims{20mm}{20mm} 
\settypeblocksize{}{33pc}{1.618} 
\setlrmargins{}{}{1.5} 
\setulmarginsandblock{3pc}{3pc}{*} 
\setcolsepandrule{1pc}{0pt} 
\chapterstyle{veelo} 
\checkandfixthelayout 
\trimFrame 
\begin{document} 
\chapter{My first chapter} 
\end{document}

Best Answer

Here's one possibility using the titlesec package and the settings used by memoir for the style:

\documentclass{report}
\usepackage{graphicx} 
\usepackage{titlesec} 
\usepackage{lipsum} %just to generate text for the example

\newcommand*\HUGE{\Huge}
\newcommand*\chapnamefont{\normalfont\LARGE\MakeUppercase}
\newcommand*\chapnumfont{\normalfont\HUGE}
\newcommand*\chaptitlefont{\normalfont\HUGE\bfseries}

\newlength\beforechapskip
\newlength\midchapskip
\setlength\midchapskip{\paperwidth}
\addtolength\midchapskip{-\textwidth}
\addtolength\midchapskip{-\oddsidemargin}
\addtolength\midchapskip{-1in}
\setlength\beforechapskip{18mm}

\titleformat{\chapter}[display]
  {\normalfont\filleft}
  {{\chapnamefont\chaptertitlename}%
    \makebox[0pt][l]{\hspace{.8em}%
      \resizebox{!}{\beforechapskip}{\chapnumfont\thechapter}%
      \hspace{.8em}%
      \rule{\midchapskip}{\beforechapskip}%
    }%
  }%
  {25pt}
  {\chaptitlefont}
\titlespacing*{\chapter}
  {0pt}{40pt}{40pt}

\begin{document}

\chapter{Demonstration of the veelo chapter style}
\lipsum[2]

\end{document}

enter image description here

Related Question