Document classes
The standard classes report
and book
and the KOMA-Script classes scrreprt
and scrbook
do not store the chapter title in macros.
Class memoir
uses three internal macros for the chapter title and its variations for the table of contents and the header lines:
\chapter[title in table of contents][title in header line]{title in body}
Then the internal macros contain:
\f@rtoc -> title in table of contents
\f@rhdr -> title in header line
\f@rbdy -> title in body
Packages
There are packages, which support to reference chapter titles.
Package nameref
:
\chapter[title in table of contents]{title in body}
\label{chap:label}
Then \nameref{chap:label}
yields "title in table of contents".
The name is stored in the internal macro \@currentlabelname
(until it is overwritten by the next title).
Package titleref
:
\chapter[title in table of contents]{title in body}
\label{chap:label}
Then \titleref{chap:label}
gives "title in table of contents".
The name is stored in the internal macro \TR@currentTitle
(until
overwritten).
Package zref-titleref
:
\chapter[title in table of contents]{title in body}
\zlabel{chap:label}% \zref@label or \zlabel with package zref-user
Then "title in table of contents" is stored by \zref@titleref@setcurrent
in property title
in macro \zref@titleref@current
.
\leftmark
includes the name of the chapter but it also includes the other parts of the mark. Or am I overlooking something?titleps
andtitlesec
as Bernard suggested.\@title{}
?