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?


1 Answer 1


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).

  • 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
    Commented Jul 15, 2011 at 12:08

You must log in to answer this question.

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