# Chapter title in header too long

How can I format the header on every page displaying the title of the current chapter? In one of my chapters the title is too long so it is running out of the page.

Here's a minimal example of my document:

\documentclass[bibliography=totoc,version=first,listof=totoc,BCOR5mm,DIV12,index=totoc,numbers=noenddot]{scrbook}
\usepackage{bibgerm}
\usepackage[english,german]{babel}
\usepackage[utf8]{inputenc}
\usepackage{a4wide}
\usepackage{wrapfig}
\usepackage{caption}

\begin{document}
\frontmatter
\mainmatter
\chapter{Very long title}
\backmatter
\end{document}


Here's a screenshot of my problem:

-

Another alternative might be:

\chapter[medium-length title for TOC, if wanted]{full title name}

-

You could provide a shorter chapter title via the optional argument to \chapter:

\chapter[<short title>]{<long title>}


-
Thank you for your answer! I read this somewhere before... I think I have to leave the title as it is for the TOC :-/ is it a good idea to try a double line header? –  strauberry Aug 21 '11 at 19:14
@Stefan thank you for that hint, I used chaptermark now –  strauberry Aug 21 '11 at 19:54

The solution that seems to work in every situation (even with math) is:

\chapter[\texorpdfstring{TOC title $$inline math A$$
}{TOC in pdf bookmarks}
]{\chaptermark{header} Chapter title $$inline math A$$}