Code: Select all
\usepackage{setspace}
\begin{document}
\begin{spacing}{0.01}
\tableofcontents
\end{spacing}
Could anyone offer a suggestion as to how I can change the spacing between successive items in my contents?
Many thanks in advance,
Lee
Code: Select all
\usepackage{setspace}
\begin{document}
\begin{spacing}{0.01}
\tableofcontents
\end{spacing}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{book}
\usepackage{tocloft}
\setlength\cftparskip{-2pt}
\setlength\cftbeforechapskip{0pt}
\begin{document}
\tableofcontents
\clearpage
\chapter{Test chapter one}
\section{test section one one}
\section{test section one two}
\chapter{Test chapter two}
\section{test section two one}
\section{test section two two}
\end{document}
With Z replaced with toc (for the \tableofcontents title) or lof (for the \listoffigures title) or lot (for the \listoftables title), those commands control the vertical spacing after and before, respectively, the corresponding title (they have no effect on the spacing between entries of the list).lee mac wrote:...I looked into the tocloft package, and was trying to use \cftafterZtitleskip and \cftbeforeZtitleskip to no avail.
...May I ask, if the above is used to space the titles, what are the two macros that I tried used for?..
Code: Select all
\documentclass{article}
\usepackage{tocloft}
\setlength\cftparskip{-2pt}
\setlength\cftbeforesecskip{1pt}
\setlength\cftaftertoctitleskip{2pt}
\begin{document}
\tableofcontents
\section{Test section one}
\subsection{test section one one}
\subsection{test section one two}
\section{Test section two}
\subsection{test section two one}
\subsection{test section two two}
\end{document}
Superb!gmedina wrote:With Z replaced with toc (for the \tableofcontents title) or lof (for the \listoffigures title) or lot (for the \listoftables title), those commands control the vertical spacing after and before, respectively, the corresponding title (they have no effect on the spacing between entries of the list).lee mac wrote:...I looked into the tocloft package, and was trying to use \cftafterZtitleskip and \cftbeforeZtitleskip to no avail.
...May I ask, if the above is used to space the titles, what are the two macros that I tried used for?..
For example, you can change the vertical spacing between the title "Table of Contents" and the first entry, by changing the length \cftaftertoctitleskip
Here's a modified version of my previous code, using article as the document class and additionally changing \cftaftertoctitleskip:
Code: Select all
\documentclass{article} \usepackage{tocloft} \setlength\cftparskip{-2pt} \setlength\cftbeforesecskip{1pt} \setlength\cftaftertoctitleskip{2pt} \begin{document} \tableofcontents \section{Test section one} \subsection{test section one one} \subsection{test section one two} \section{Test section two} \subsection{test section two one} \subsection{test section two two} \end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.