Text FormattingSpacing between LoF Entries

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
gilmour
Posts: 3
Joined: Thu May 23, 2013 12:25 am

Spacing between LoF Entries

Post by gilmour »

Hi,

I was wondering if anyone knows of an easy way to change the spacing between all of the captions in LoF. I'm formatting my dissertation and every caption must be single spaced and there should be a double space between every caption. My captions are very long and LaTeX is currently forcing each page in the LoF to have a different spacing between figure captions. Is there any way to force it to always double space?

Thanks!

Recommended reading 2024:

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

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

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Spacing between LoF Entries

Post by mas »

Take a look at tocloft package. That will help you set the formatting options.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
gilmour
Posts: 3
Joined: Thu May 23, 2013 12:25 am

Spacing between LoF Entries

Post by gilmour »

I just tried including the package and my document won't compile due to a conflict with a subfigure package. Everything breaks when I remove the subfigure package. I'm trying to do it by redefining the LOF command within the class file. Below is what I have so far. The \protect\noaddvspace command should suppress any attempt to sanely space the captions, but it doesn't. Any ideas?

Code: Select all

\renewcommand*{\listoffigures}{%
  \newpage
  \def\@tocpage{\roman{page}}
  \addtocontents{toc}{\protect\contentsline{chapter}{LIST OF FIGURES}{\@tocpage}}
  \begin{center}
    LIST OF FIGURES \\[48pt]
  \end{center}
  \singlespacing
  \ifx \@finalstyle \undefined \relax \else \setlength{\parskip}{12pt plus0pt minus0pt} \fi
  \let\tmpnumberline \numberline
  \renewcommand{\numberline}[2]{\tmpnumberline{Figure ##1}{##2}}
  \newcommand*{\noaddvspace}{\renewcommand*{\addvspace}[1]{}}
  \addtocontents{lof}{\protect\noaddvspace}
  \@starttoc{lof}
  \ifx \@finalstyle \undefined \relax \else \setlength{\parskip}{0pt} \fi
  \let \numberline \tmpnumberline
  \newpage
Last edited by cgnieder on Thu May 23, 2013 5:38 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Spacing between LoF Entries

Post by Johannes_B »

Code: Select all

\usepackage[subfigure]{tocloft}
This should be mentioned in the documentation of tocloft.
Please note, that the subfigure-package is obsolete.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
gilmour
Posts: 3
Joined: Thu May 23, 2013 12:25 am

Re: Spacing between LoF Entries

Post by gilmour »

Thanks, I gave it a go but it overwrites all the modifications shown above. Is there a way to hack it without the tocloft package?
Post Reply