[Tex/LaTex] Modify default memoir chapter style

chaptersformattingmemoirsectioning

I'm using memoir and using its default chapter style.
what I'm looking to do is to change the format from

chapter 1

chapter title

to something like this:

chapter 1: chapter title

I'm new to LaTeX and I've been struggling with this all day reading manual and searching the net

EDIT: I forgot to mention that I would like the title to be centered as well

Best Answer

In your preamble:

\renewcommand{\chapnumfont}{\chaptitlefont}    % To harmonise the font sizes
\renewcommand{\chapnamefont}{\chaptitlefont}   % idem
\renewcommand{\afterchapternum}{:\quad}        % To set the line

(for example).

The macro \afterchapternum is called by memoir after setting 'Chapter n' and before setting 'This is my Chapter'.

The default value is this:

\def\afterchapternum{\par\nobreak\vskip \midchapskip}

The memoir manual describes this in §6.5, around pp 80-82.


Note: Added font harmonisation. My thanks to @lockstep.