GeneralSet spacing between levels in TOC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lcarr
Posts: 1
Joined: Sat Jun 30, 2012 1:29 am

Set spacing between levels in TOC

Post by lcarr »

My university requires double spacing between levels in the TOC but single spacing within a level such as:

1 INTRODUCTION .......................................... 1

1.1 Literature Review ................................... 4

1.1.1 Study Area: Pineview Reservoir Watershed .......... 4
1.1.2 High-Frequency Monitoring ......................... 9

1.2 Objectives ........................................... 15

2 METHODOLOGY .............................................. 17

But I cannot get the double space when going from subsubsection to subsection (i.e. between 1.1.2 and 1.2) using the following code:

Code: Select all

\renewcommand\section{\@startsection{section}{1}{\z@}
  {-3.25ex\@plus -1ex \@minus -.2ex}
  {1.5ex \@plus .2ex}
  {\normalfont
  \ifnum\value{section}>1 \else \addtocontents{toc}{\protect\addvspace{10pt}}\fi}}

\renewcommand\subsection{\@startsection{subsection}{1}{\z@}
  {-3.25ex\@plus -1ex \@minus -.2ex}
  {1.5ex \@plus .2ex}
  {\normalfont
  \ifnum\value{subsection}>1 \else \addtocontents{toc}{\protect\addvspace{10pt}}\fi}}

\renewcommand\subsubsection{\@startsection{subsubsection}{1}{\z@}
  {-3.25ex\@plus -1ex \@minus -.2ex}
  {1.5ex \@plus .2ex}
  {\normalfont
  \ifnum\value{subsubsection}>1 \else \addtocontents{toc}{\protect\addvspace{10pt}}\fi}}
Attachments
Example.zip
(66.18 KiB) Downloaded 173 times
Last edited by Stefan Kottwitz on Sat Jun 30, 2012 11:47 am, edited 2 times in total.

Recommended reading 2024:

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

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

Post Reply