I am in the process of writing my dissertation, but I have encountered a problem with the table of contents. The entry "The evolution of death rates and life expectancy in Denmark" is being printed on a single line, although the corresponding page number is printed outside the right margin. How can I fix this?
Thank you very much,
Esben
Code: Select all
\documentclass[11pt,b5paper]{book}
\usepackage{url}
\usepackage[danish,english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{latexsym}
\pagestyle{plain}
\usepackage{cite}
\usepackage{amssymb,amsmath,amsthm,epsfig,float,psfrag,amsfonts,harvard,rotating}
\usepackage{chapterbib}
\usepackage[dvips=false,pdftex=false,vtex=false]{geometry}
\usepackage[a4,center]{crop}
\usepackage{float}
\usepackage{array}
\usepackage{t1enc}
\usepackage{verbatim}
\usepackage{changebar}
\makeatletter
\renewcommand{\@makechapterhead}[1]{%
\vspace*{20 pt}%
{\setlength{\parindent}{0pt} \raggedright \normalfont
\bfseries\huge
\ifnum \value{secnumdepth}>1
\if@mainmatter\thechapter.\ \fi%
\fi
#1\par\nobreak\vspace{15 pt}}}
\makeatother
...
\newpage
\thispagestyle{empty}
\frontmatter
\chapter{Preface}\input{Preface}
\chapter{Summary}\input{Summary}
\selectlanguage{danish}
\chapter{Sammenfatning}\input{Sammenfatning}
\selectlanguage{english}
\setcounter{tocdepth}{0} \tableofcontents
\mainmatter
\chapter{Introduction}\input{Introduction}
\chapter[{The evolution of death rates and life expectancy in Denmark}]{The evolution of death rates and life expectancy in Denmark}\label{chapter:evolution}\input{mortality}
\cleardoublepage \addcontentsline{toc}{chapter}{Bibliography}
\bibliography{afhandling}
\end{document}