I'm trying to extend my chapter heading into the right margin. In the memoir manual an example of this is given for the companion chapter style using the adjustwidth environment.
I tried using that to adapt the hangnum chapter style, but now the chapter name is printed below the chapter number (on a new line). How can I fix this?
\documentclass{memoir}
\usepackage{lipsum}
\setlrmargins{*}{*}{2.5}
\checkandfixthelayout
\chapterstyle{hangnum}
\renewcommand{\printchaptertitle}[1]{%
\begin{adjustwidth}{}{-5cm}
\raggedright \chaptitlefont #1\par\nobreak
\end{adjustwidth}}
\begin{document}
\chapter{Very long title i i i i i i i i i i i i i i i i i i i i i i i i i i i i}
\lipsum[1]
\end{document}