# What is the command for writing out the chapter name in the memoir class? [duplicate]

Say I have \chapter{Test Chapter} in my document, and I want to insert the title of the chapter into some code or into the text further down the document, what is the command for inserting the previous chaptertitle? I have tried \thechapter but it only inserts the number of the chapter.

The command \thechapter is also used somewhere in my preamble, so I don't want to redefine that command, lest it'll mess up something else.

As stated, I use the memoir class.

• – Werner May 18 '15 at 8:59
• @Werner, not really because nameref is not needed in this case ;-) – daleif May 18 '15 at 9:00
• @daleif: Neither is memoir. :) – Werner May 18 '15 at 9:01
• @Werner, no but the question is explicitly asking about memoir. – daleif May 18 '15 at 9:01
• @daleif: The reason I mention this is because nameref works with memoir making the posted duplicate solutions usable, or you can use \titleref (out-of-the-box built by memoir). – Werner May 18 '15 at 9:04

use references

\chapter{Some title}
\label{chap:some}


then later

\ref{chap:some} -> chapter number
\pageref{chap:some} -> page number for the start of this chapter
\titleref{chap:some} -> the title of the chapter


\titleref is build into memoir