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?



        \raggedright \chaptitlefont #1\par\nobreak

    \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}
  • I found a solution here, which works in this MWE, but when I try to implement it I still get into trouble. My chapter titles are colored, and when I add '\color{blue}' the problem returns. Any ideas? – titto Aug 19 '17 at 8:43
  • Found it. I should have used '\textcolor'. This works: '\renewcommand{\printchaptertitle}[1]{\makebox[0pt][l]{\parbox[t]{1.4\textwidth}{\raggedright\chaptitlefont\textcolor{blue}{#1}\par\nobreak}}}' – titto Aug 19 '17 at 9:12
  • Would you like to turn your last comment into an answer? – Peter Wilson Aug 20 '17 at 17:57

This answers the original question (source):


To make the color of the title blue use \textcolor{blue}{#1} like this:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.