0

I am in the same situation as the author of How can I display a short chapter name in the header and a long chapter name in the TOC but, in addition, I also want the starred version for the Epilogue: no chapter number anywhere.

Here is a MWE:

    \documentclass[11pt]{book}

\begin{document}

\tableofcontents

\chapter{Un El'ephant}

\c ca trompe,

\chapter{Deux El'ephants}

\c ca trompent,

\newpage

\c ca trompent,

\chapter{Trois El'ephants}

\c ca trompent ...

\newpage

... 'enorm'ement.

\chapter*[SpryRogue]{Epilogue}\chaptermark{PiLog}

\newpage

Pas trop n'en faut.

\end{document}

schremmer
  • 2,107
  • Search for addcontentsline – Johannes_B Aug 05 '20 at 02:47
  • Unrelated : The default input encoding has been changed to utf8, and ifyou use T1 font encoding, you'll have no problem directly typing ‘Un éléphant, ça trompe énormément’. – Bernard Aug 05 '20 at 08:58
  • @Johannes_B I searched for addcontentsline but didn't see anything that would explain what to put in \addcontentsline{toc}{ }{ } to make \chapter*[Spry Rogue]{Epilogue}\chaptermark{Pi Log} work (as it should). – schremmer Aug 06 '20 at 05:55
  • @Bernard Didn't know. Don't write much in French anymore. Will try it when this is over. – schremmer Aug 06 '20 at 05:57
  • \addcontentsline{toc}{chapter}{Epilog} – Johannes_B Aug 06 '20 at 07:52
  • @Johannes_B TOC: ok BODY: Title is just a big [ but first line of text is SpryRogue]Epilogue HEADER: ChapNumber is previous ChapNumber instead of No ChapNumber but correct title! – schremmer Aug 06 '20 at 16:52
  • Perhaps a \backmatter declaration is what you are looking for (and use \chapter without *). – Donald Arseneau Aug 06 '20 at 22:45
  • Starred chapters don't work with optional argument. – Johannes_B Aug 07 '20 at 02:44

1 Answers1

1

Use

\backmatter
\chapter[SpryRogue]{Epilogue}\chaptermark{PiLog}             

Why on earth do you want three different titles???

C'est fou!

  • 1
  • T'would take too long to tell the---embarrassing---tale. 2. Complètement fou! 3. Les éléphants sont énormément reconnaissants.
  • – schremmer Aug 07 '20 at 15:55