# What is wrong with the line spacing of my lists of figures and tables?

Since a good picture is better than a long text, here is the problem:

And here is most of my Latex file up to this point:

\documentclass[12pt,a4paper,oneside]{book}
\usepackage{setspace}
\usepackage[francais, english]{babel}
\usepackage[applemac]{inputenc}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{enumerate}
\usepackage{array}
\usepackage[bf,figurewithin=none,tablewithin=none]{caption}
\usepackage{verbatim}
\usepackage{tocloft}

% Margins
\usepackage[left=4cm, right=2cm, top=3cm, bottom=2cm]{geometry}

% Nomenclature -> List of Abbreviations
\usepackage[intoc]{nomencl}
\renewcommand{\nomname}{List of Abbreviations}
\makenomenclature

% Make magic URL
\usepackage{hyperref}
\usepackage[all]{hypcap}
\hypersetup{
pdfborder = {0 0 0 0}
}

% APA style referencing
\usepackage{natbib}

% Hack for URL serif font formating
\let\oldUrl\url
\renewcommand{\url}[1] { \urlstyle{same}\oldUrl{#1} }

% ToC & Abbreviations in the ToC
\usepackage[chapter]{tocbibind}

% Widows & Orphans
\widowpenalty=10000
\clubpenalty=10000

\begin{document}
\selectlanguage{english}

\frontmatter

\setcounter{tocdepth}{1}
\tableofcontents

% --------------------------List of Abbreviations----------
\clearpage
\printnomenclature[3 cm]

% --------------------------List of Figures-------------------
\clearpage
\listoffigures
\listoftables


Do you have any idea what is going on with the line spacing?

-
Could you provide a minimal example that reproduces the problem? Do you really need to load all those packages to get the bug to kick in? –  Juan A. Navarro Jul 28 '10 at 17:20
In addition to Juans comment I would suggest that your example should compile without further edits. So if I copy your example into my editor and compile it, it should produce the output you wish, –  qbi Jul 28 '10 at 17:57
Maybe this could be taken to the meta. In a sense how should (minimal) examples be, so best answers are possible. –  Nils Schmidt Jul 28 '10 at 22:51
@Nils: I'm not trying to silence any discussion, but I do think the notion of a minimal example is straightforward. It is an example which: 1) will actually compile as given on any standard tex system, and 2) contains only that which is necessary to reproduce the behaviour exemplified. –  vanden Jul 29 '10 at 14:59
@vanden: I totally agree, but maybe it is a topic that should be addressed in meta, or maybe taken into the FAQs. –  Nils Schmidt Jul 30 '10 at 11:11

On my system, appending the following to your example

\begin{figure}\caption{Something}\end{figure}
\begin{figure}\caption{Something}\end{figure}
\begin{figure}\caption{Something}\end{figure}

\begin{table}\caption{Something}\end{table}
\begin{table}\caption{Something}\end{table}
\begin{table}\caption{Something}\end{table}

\end{document}


produces a document where spacing between lines are all fine. Please do try to build a minimal and complete example that reproduces the bug.

-

After much trying to replicate the behavior in a "minimal example", I actually found out what is happening. First let me say that I tried both ways: trying to recreate the behavior from scratch by adding bricks, and trying to provide a minimal example by removing bricks from my original document.

Finally, and sort of thanks to this other question, I found out that my "behavior" is not actually a bug, but a feature! In fact, what you can't really guess from my picture up there, is that all my figures were in the same chapter (document class is "book"), while all tables are in different chapters. Hence the line spacing for the tables, but not the figures, which symbolizes the chapter changes.

Anyway, sorry for bothering you and for not getting back to you earlier. Now I am going to try and see how I can add a line space between all figures and tables, independently from the fact that they are in the same chapter or not.

-
We should eventually add this to the faq, including some hints on how to build minimal examples. I can give you some preview: usually the removing bricks option works best; also usually, as you did, it is pretty common that you find the cause of your problem just by trying to build a minimal example. –  Juan A. Navarro Jul 29 '10 at 19:44