The chapters in the book I'm working on are all named. However, while I want the names to show up in the TOC, I want the numbers and the numbers only to show up as the chapter headings. (I know that sounds weird, and I'll be happy to explain why if it matters.)

So, for example, the name of chapter I is "De Puero Superstite." I want "De Puero Superstite" to show up in the TOC, but only the number I to show up as the chapter heading. (I've already got it set to Roman numerals.)

Is there a way to do this? If I need to I can use titlesec to redefine the title format, leave the numbers out entirely, and do eg \chapter[De Puero Superstite]{I}, but there's got to be a more elegant way to do it.

Any thoughts?

EDIT: By "Chapter Heading" I mean not the page header—the thing that appears at, for example, the very top of every left page (or every right page, or every page) but the thing that appears once before the text of the chapter begins.

2 Answers 2


It depends on whether you want the ToC entry to appear in the page headers or not. For the ToC entry and page header entries to be the same.

% chapternameprob.tex  SE 544473 no name in division header
\renewcommand{\chaptername}{} % eliminate Chapter in divisional heading
\chapter[toc and header entry]{} % empty divisional title

For them to be different use the memoir class:

% chapternameprob.tex  SE 544473 no name in division header
\chapter[toc entry][header entry]{}

The memoir class enables you to have different entries in the ToC, the page header, and the main document for all the divisional commands (\chapter ... \subparagraph)

  • Thank you! This works beautifully! May 16, 2020 at 21:14

Try this.

\usepackage{xpatch} % for \xpatchcmd
\usepackage{lipsum} % for \lipsum to produce dummy texts 

% hide chapter title (e.g., "first title")

% hide \chaptername (the word "Chapter" followed by a space)
% based on `texdoc titlesec`, sec. 9.2
  % before: {\chaptername\ \thechapter}


\chapter{first title}

\chapter{second title}

enter image description here enter image description here

  • Hunh. A MWE of your code gives me "1," which I want, followed by "first title," which I don't. Have I missed something? Sorry not to understand. May 16, 2020 at 0:25
  • @JoelDerfner Do you copy-and-paste my whole example, or just use add the redefinition of \chaptermark into your existing document? May 16, 2020 at 0:46
  • I did a new LaTeX file, copied and pasted just your code into it, and compiled it. It gave me "1 first title." May 16, 2020 at 0:50
  • @JoelDerfner Which latex distribution and which version of that distribution are you using? Does the compiling results in any errors? The output is ok both on my side (texlive 2020) and on overleaf.com (texlive 2019). May 16, 2020 at 1:00
  • That is really, really weird, because I'm using texlive 2019 on overleaf! I took a screen shot to show you but I can't seem to add it to a comment. (In case it matters, I'm using pdfLaTeX.) May 16, 2020 at 1:09

You must log in to answer this question.

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