GeneralTrouble with /listoffigures

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Trouble with /listoffigures

Post by localghost »

Since you have not been able to create a minimal working example (MWE), I did so. And so I found out that the harvard package is the cause of the problem.

Code: Select all

\documentclass[12pt,a4paper,fleqn,titlepage,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
%\usepackage{harvard}
\usepackage{blindtext}


\begin{document}
  \bibliographystyle{dcu}
  \pagenumbering{roman}

  \tableofcontents \newpage
  \listoffigures \newpage
  \listoftables \newpage

  \pagenumbering{arabic}

  \begin{figure}[!ht]
    \centering
    \rule{12cm}{9cm}
    \caption{\blindtext}\label{fig:testfigure}
  \end{figure}
\end {document}
The original harvard package was not developed for LateX2e, so you have to replace it by the harvard-latex package. But I don't know how to do that since calling the package seems not to have changed. You may find that out by yourself and present the result here.

Regarding the fact that such long captions are unusual, you should think about setting a short caption in the optional argument of the \caption command.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Jye
Posts: 4
Joined: Fri Nov 02, 2007 7:03 am

Re: Trouble with /listoffigures

Post by Jye »

Cheers localghost, that worked :D
Post Reply