TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing my thesis, and one of the sections has a title which looks good in the table of content, but it's too long in the main text, so that it goes on the new line by hyphenating one of the words. More in specific, it looks like this:

In the toc:

2.1 Conservative Extensions and Inseparability Relations

In the main text:

2.1 Conservative Extensions and Inseparability Re-


I would like still to have 1 line in the toc, but to decide where to go on the new line in the main text. Do you have any suggestion? I don't even know how to google for this problem...

share|improve this question
\section[toc title]{main \\ title} – David Carlisle Jul 2 '12 at 19:31
@DavidCarlisle -- if that section title is run-in and should be justified with the rest of the text, you don't want that space before ` \\ `. – barbara beeton Jul 2 '12 at 19:35
@klaraspina -- if the section title isn't run in, you could \mbox the last word. better still would be to disallow hyphenation entirely in section titles and set them ragged right, but how that's done depends on what document class you're using, and you don't say. – barbara beeton Jul 2 '12 at 19:39
@David: your advice works fine, thank you very much! – klaraspina Jul 2 '12 at 21:53
@barbara: I'm using the class 'thesis' provided by my university – klaraspina Jul 2 '12 at 21:54
up vote 4 down vote accepted

Simplest way is to use

 \section[toc title]{main\\ title}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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