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.


use references

\chapter{Some title}

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

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