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 am writing a document with the book class. Hence, the title of the chapter appears at the head of each even page, and the title of the section appears at the head of each odd page. However, some of my titles are too long and the texts exceeds the margins.

How can I resolve this, for instance by ending the heading with '...' if the heading is too long?

share|improve this question
up vote 6 down vote accepted

Provide an abbreviated name for those chapters and sections with long titles.

\chapter[Short name]{Chapter with a very long name}

\section etc. also take an optional parameter.

See the link in Ulrike Fischer's comment, which describes an alternate scheme (\chaptermark etc).

share|improve this answer
I fixed a typo in your answer. I did so because it was a typo in the code and so could have lead to confusion... Hope that's ok. – Seamus Jul 15 '11 at 12:08

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.