I take the Veelo chapter style code in p.399 memman.pdf
and make slight change on fontsize and colour. When I compile, it prints the word "Chapter" without the chapter number. I have two questions:
Why doesn't it print the chapter number? Am I missing something?
How can I manually number the chapters? For example, make something like
\chapter[n]{ABC}
that prints "Chapter n: ABC"
Here is the MWE
\documentclass[a4paper, 11pt]{memoir}
\usepackage{graphicx, xcolor}
\usepackage{lipsum}
\makeatletter
\newlength{\numberheight}
\newlength{\barlength}
\makechapterstyle{veelo}{%
\setlength{\afterchapskip}{40pt}
\renewcommand*{\chapterheadstart}{\vspace*{40pt}}
\renewcommand*{\afterchapternum}{\par\nobreak\vskip 25pt}
\renewcommand*{\chapnamefont}{\normalfont\LARGE\flushright\color{magenta}}
\renewcommand*{\chapnumfont}{\normalfont\HUGE}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\bfseries\flushright\color{cyan}}
\renewcommand*{\printchaptername}{%
\chapnamefont\scshape{\@chapapp}}
\renewcommand*{\chapternamenum}{}
\setlength{\beforechapskip}{18mm}
\setlength{\midchapskip}{\paperwidth}
\addtolength{\midchapskip}{-\textwidth}
\addtolength{\midchapskip}{-\spinemargin}
\renewcommand*{\printchapternum}{%
\makebox[0pt][l]{\hspace{.8em}%
\resizebox{!}{\numberheight}{\chapnumfont\thechapter}%
\hspace{.8em}%
\rule{\midchapskip}{\beforechapskip}%
}}%
}
\makeatother
\chapterstyle{veelo}
\begin{document}
\chapter{Applications of the Derivative}
\lipsum[2]
\end{document}