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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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