Usually, when I want to reduce the size of some of my titles in the headers, I use [a short title in brackets]. But, this time, I'd like to use long titles in the TOC, but the headers have to be short. How could I achieve this? This is my MWE:






\setlength{\cftbeforechapskip}{3pt}%espace entre chapitres
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters

\makeindex[name=npr, title=Index des noms] 
\makeindex[name=mat, title=Index des matières]

% We don't want chapter and section numbers
\fancyhf{} % sets both header and footer to nothing
\fancyhead[CE]{\textit{A name}} % even pages: chapter title
\fancyhead[CO]{\textit\leftmark} % odd pages: book title

%%%%%%%%%%%%Pas de N° de chapitres%%%%%%%%%%%%%%%%%%%%

    {\centering\Large\bfseries}% format of chapter
    {\large\normalfont\MakeUppercase{\chaptertitlename}\enskip\thechapter}% format of the label
    {.5\baselineskip}{} % space between the two
\titlespacing*{\chapter}{0pt}{25pt}{35pt} % spaces around \chapter{}, {left}{before}{after}

\renewcommand{\@chapapp}{}% Not necessary...
   \parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax%

%%%%%%%%%%%%%Numérotation en chiffres arabes%%%%%%%%%%%%%%%%%%%
  %\pagenumbering{roman}% Don't reset
  %\pagenumbering{arabic}% Don't reset

\title{A title}
\author{A name}



\chapter[A chapter whose the title is short]{A chapter which has a very very very long title as you can see}
\chapter{A section which has also a very very very long title as you can see}


  • 1
    The way to go, since you use titlesec, is to load it with option [toctitles]. The optional argument of chapter will be used only in the headers (see §3.7 of the documentation).
    – Bernard
    Commented Aug 12, 2021 at 12:41
  • I tried this, but it does not work as you say: \usepackage[toctitles]{titlesec}. Is this code right?
    – domi
    Commented Aug 12, 2021 at 12:51
  • That is OK. I never tried this option, but perhaps it is linked to your using tocloft for the formatting of your table of contents. Anyway, titlesec has a companion package for that: titletoc. You should try to see first if it works with the default formatting. Also, another question: did you compile at least twice with this option?
    – Bernard
    Commented Aug 12, 2021 at 12:57
  • I removed tocloft, but it does not change anything. Even using \usepackage{titletoc}, it does not work at all.
    – domi
    Commented Aug 12, 2021 at 14:02
  • toctitles optoin seems to work for sections, not chapters - see workaround at tex.stackexchange.com/questions/498592/… . Alternatively, use \chaptermark: \chapter{VERY VERY VERY VERY LONG TITLE} \chaptermark{SHORT TITLE} - see tex.stackexchange.com/questions/216144/…
    – Cicada
    Commented Aug 13, 2021 at 12:36

1 Answer 1


The memoir class (a superset of book, report, ...) has two optional arguments for division titles. For example:


where toc-title is put in the ToC, head-title is put in the page headers, and title is the section's title in the body of the document.

All the division macros from \chapter through \subparagraph have the same capabilities.

  • It works. Does the memoir class offer the same capabilities of the book class? With this solution, I can't use tocloft anymore.
    – domi
    Commented Aug 14, 2021 at 9:23
  • The memoir class includes, and extends, the capabilities of the tocloft package, albeit with some minor changes in the macro names. For example \cftsectiondotsep instead of cftsecdotsep. In general division names like \section, or captions, are spelled out in full instead of shortened. Like cftfigurefont instead of \cftfigfont. Commented Aug 15, 2021 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .