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:
- one two three four five six se-
ven eight nine ten
This seems ugly to me. I would like to have it like:
- 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?
\raggedright
then tex won't hyphenate them. – David Carlisle Nov 13 '19 at 17:22\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. – Salatiel Garcia Nov 14 '19 at 4:47