TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a new float type with the following in my preamble:

\floatname{myfloat}{\bf My Float}

Then I use the following to create a list at the beginning of my document of all of these new floats:

\listof{myfloat}{My Floats}

I'd like to change the spacing between the elements in the list of myfloat's such that it matches the spacing in my listoffigures and listoftables.

I'm using a class based on the book class (more specifically: http://www.eg.bucknell.edu/physics/thesis/buthesis.cls).

share|improve this question
Do not use \bf ... but \textbf{My Float}. See Does it matter if I use \textit or \it or l2tabu for an explanation. – Martin Scharrer Apr 3 '11 at 21:45
up vote 2 down vote accepted

To achieve the same format for the new list of floats, it's necessary to redefine two commands: \listof from float.sty (I assumed that you are using this package to build your new float type) and \@chapter from book.cls (the standard class on top of which buthesis.cls is build). The first redefinition only changes \parskip from 0pt (default value used for the new lists created with float) to 0.2in (which is the value used for buthesis.cls). The second redefinition simply adds a vertical space of 10pt at the beginning of each chapter in the new list.

The relevant code that has to be added to the preamble (after the float package has been loaded) is the following:

  \begingroup\setlength{\parskip}{0.2in}% default: 0pt
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
                    \addtocontents{myfloat}{\protect\addvspace{10\p@}}%adds space to the new list
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.