# How can I redefine the chapter command to display additional text below the title?

I'm relatively inexperienced with Latex. I'm using the Memoir class and I've been trying to develop a custom chapter style based on Danie Els' BlueBox style (the source for this is given on page 46 of Memoir Chapter Styles).

I'd like to redefine the chapter command to take two arguments, such as below:

\chapter{ExampleChapter}{A short description of the contents of this chapter}

I'd then like to have both arguments passed to a redefined version of \printchaptertitle so that I can print the description beneath the title:

\renewcommand{\printchaptertitle}[2]{%
\usebox{\ChpNumBox}\hfill
\parbox[t]{\hsize-\wd\ChpNumBox-1em}{%
\vspace{\midchapskip}%
\thickhrulefill\par
\chaptitlefont ##1\par}}%2
% ##2 is used somewhere here
}

EDIT

I hacked something ugly together that's pretty close to what I want:

I redefine the afterchapskip length within the chapter style to be negative:

\setlength{\afterchapskip}{-45pt}

I then define the following macro:

\chapter{#1}
\begin{flushright}
\parbox[t]{\hsize-\wd\ChpNumBox-5em}{\flushright\small{\textcolor{dark-gray}{#2}}}
\end{flushright}
\vspace{30pt}
}

Then within the document itself I use:

\addChapter{Example Chapter}{A short description of the contents of this chapter. I can ramble on a bit just to point out that this is flushed right.}

That produces the following:

EDIT 2

Using daleif's recommended approach below, I've got something that works quite nicely.

I define the following:

\def\chapterDesc{}
%...
\newcommand{\setChapterDescription}[1]{%
\def\chapterDesc{#1}%
}
%...
\setChapterDescription{#2}
\chapter{#1}
\setChapterDescription{}
}
%...
\renewcommand{\printchaptertitle}[1]{%
\usebox{\ChpNumBox}\hfill
\parbox[t]{\hsize-\wd\ChpNumBox-1em}{%
\vspace{\midchapskip}%
\thickhrulefill\par
\chaptitlefont ##1\par
\vspace{20pt}
\normalfont\small\textcolor{dark-gray}{\chapterDesc}}
}%2
}

I can then do something like the following:

\addChapter{Example Chapter}{A short description of the contents of this chapter. I can ramble on a bit just to point out that this is flushed right.}

Or just:

\chapter{Descriptionless Chapter}

• You do not need \setChapterDescription{} in \addChapter, just add \gdef\chapterDesc{} at the end of \printchaptertitle. And next time, please post full minimal examples, including preamble and such. That makes it a lot easier for people to use or test your suggestion – daleif Jul 28 '14 at 10:50