GeneralTable of Contents Spacing

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Pcubik
Posts: 1
Joined: Sat Aug 30, 2008 7:08 pm

Table of Contents Spacing

Post by Pcubik »

I have successfully redefined the spacing for the top margins and titles of the ToC, LoF, and LoT.... with the following code:

Code: Select all

makeatletter
\def\tableofcontents{%
 \newpage
 \centerline{\bf TABLE OF CONTENTS}
 \vspace*{0.3in}
 \@mkboth{CONTENTS}{CONTENTS}
 \@starttoc{toc}
}
\makeatother

\makeatletter
\def\listoffigures{
\newpage
 \vspace*{1.0in}
 \centerline{\bf LIST OF FIGURES}
 \vspace*{0.3in}
 \@mkboth{LIST OF FIGURES}{LIST OF FIGURES}
 \@starttoc{lof}
}
\makeatother

\makeatletter
\def\listoftables{%
 \newpage
 \vspace*{1.0in}
 \centerline{\bf LIST OF TABLES}
 \vspace*{0.3in}
 \@mkboth{LIST OF TABLES}{LIST OF TABLES}
 \@starttoc{lot}
}
\makeatother
However, I need to have double spacing between entries and single spacing within the entries. My fruitless searching is still, well, fruitless.

Thanks!

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Table of Contents Spacing

Post by gmedina »

Hi,

have you tried using the tocloft package? Read the package documentation to learn all the options it offers.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Table of Contents Spacing

Post by Stefan Kottwitz »

Hi Pcubik,

welcome to the board!
I have just some comments, perhaps some if it might be useful for you. I would not use uppercase and bold, that's emphasizing two times. Perhaps compare with

Code: Select all

\centerline{\large\scshape Table of Contents}
Similar for the headings like \@mkboth{LIST OF FIGURES}{LIST OF FIGURES} - hard to head, I would prefer small caps by \scshape.
\bf is obsolete, use \bfseries instead. It's not defined in the LaTeX kernel any more, just in some document classes for compatibility reasons. titles and spacing could have been done by titlesec.

Stefan
LaTeX.org admin
Post Reply