I recently started using latex and while I have faced many problems and found most of the solutions, there is still a problem I cannot fix.
The problem is with the TOC and the List of Figures. The section headings and figure captions are long and so in the TOC and the List of Figures, they should wrap around. Instead, latex displays them on a single line. Pls see figure below:

The code I am using is the following. Many thanks for any kind of help or pointers.
Code: Select all
\documentclass[11pt,a4paper]{diss}
\usepackage{a4,epsfig,exscale,longtable,amsfonts,amsmath,fancyhdr,makeidx,bibunits,hyperref,paralist,tocbibind,subfigure}
\usepackage[dvips]{color}
\usepackage{pifont} % Customizing the itemize list environment
\setlength{\textwidth}{125.0mm} \setlength{\textheight}{195.0mm}
\setlength{\oddsidemargin}{10.0mm}
\setlength{\topmargin}{0.0mm} % <----- book format
\setlength{\baselineskip}{3.75mm} \setlength{\parindent}{5.00mm}
\pagestyle{fancy}
\newfont{\bookfont}{cmbx12 scaled 2500} % <--------- defining a new font --> \newfont{\bname}{filename scaled scalingfactor*1000}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} % make space for the rule
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}
\begin{document}
\parindent 0pt
\frontmatter
\tableofcontents
\pagestyle{empty}
\mainmatter
\pagestyle{fancy}
\addtolength{\parskip}{+0.2cm}
\include{mychapter}
\backmatter
\addtolength{\parskip}{-0.2cm}
\fontsize{10pt}{12pt} %bibliography font size = 10pt
\selectfont
\listoffigures
\bibliographystyle{dissbib}
\bibliography{models}
\vspace{12pt}
\end{document}