Assume I have a long chapter title \chapter{one two three four five six seven eight nine ten} that appears in the table of contents like this:

  1. one two three four five six se-

ven eight nine ten

This seems ugly to me. I would like to have it like:

  1. one two three four five six

seven eight nine ten

But if I use \chapter{one two three four five six \mbox{seven} eight nine ten} the line in the table of contents will be too long, so is there an alternative to have a linebreak in the table of contents without hyphenation and without having a line that is too long?

  • 1
    Welcome to TeX.SX. With index, you mean the table of contents?
    – Johannes_B
    Nov 13, 2019 at 16:00
  • 1
    Which documentclass are you using?
    – Johannes_B
    Nov 13, 2019 at 16:01
  • arrange that your chapter headings are set \raggedright then tex won't hyphenate them. Nov 13, 2019 at 17:22
  • 1
    by the way you mean Table of Contents not Index (Index in English means the alphabetical list, usually at the end of the book) Nov 13, 2019 at 17:23
  • Have you tried the \hyphenpenalty option? It is intended for that, you can set it to \hyphenpenalty=10000 to prevent most hyphens. And modify it before and after including the index. Nov 14, 2019 at 4:47

1 Answer 1


If you want to disable hyphenation for all entries in ToC, LoF and LoT:

(Remember to compile code twice)

enter image description here



\renewcommand{\@tocrmarg}{2.55em plus1fil}

\chapter{Test Chapter}
\section{The Separation Axioms and Continuous Real-Valued Functions}

Taken from--https://tex.stackexchange.com/a/430273/197451

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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