4

I am finishing up my dissertation and have a small issue. The dissertation format asks for single spacing the chapter heading in table of contents if it is too long and can't fit in one line. The same goes for list of figures and captions. I followed the post Single Spacing Long Subsection Header in Table of Contents, and modified my chapter headings from something like

\chapter{Implementation and modification of a three dimensional radiation stress formulation for surf zone and rip-current applications} 

to

\chapter[\protect \vspace {-2ex}{Implementation and modification of a\\ three dimensional radiation stress formulation\\ for surf zone and rip-current applications]{Implementation and modification of a three dimensional radiation stress formulation for surf zone and rip-current applications} 

This only partially works as I get an output in my table of contents with first two lines with single spacing but the third line with double spacing.

What modification needs to be done if I want all three lines in this case to have single spacing? Also in general what should be done if I need "n" lines where n>2?

My class file is officially hosted here, but it has also been uploaded to pastebin (33K).

Let me know if you would need more information to answer my question.

1

Here's one possibility. Let's suppose you're using \usepackage[doublespacing]{setspace} in your preamble to get double line spacing throughout your thesis. Then what you can do is put the \tableofcontents command inside a \begin{spacing}{1}...\end{spacing} environment: the 1 locally reverts the spacing to single.

\documentclass[a4paper]{report}
\usepackage[margin=1in]{geometry}
\usepackage[doublespacing]{setspace}

\begin{document}

\begin{spacing}{1}
\tableofcontents
\end{spacing}

\chapter{Lorem ipsum dolor sit amet, consectetur adipiscing 
elit. Etiam condimentum lacus vel lacus commodo auctor.
Class aptent taciti sociosqu ad litora torquent per conubia
nostra, per inceptos himenaeos.}

Nam fermentum, nibh in vehicula pretium, ligula nibh laoreet turpis,
rhoncus dictum lectus libero id tellus.

Donec ultricies neque ut augue ultricies suscipit vitae nec leo. Sed 
porta congue elit auctor vestibulum. Ut id ornare lectus, in convallis 
urna. Nunc bibendum venenatis est, nec auctor nulla lacinia malesuada. 
Duis commodo elementum lacinia. Phasellus nibh lorem, cursus vitae 
mauris non, pretium dictum diam.

\chapter{Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Etiam condimentum lacus vel lacus commodo auctor. Class 
aptent taciti sociosqu ad litora torquent per conubia nostra, per 
inceptos himenaeos.}

Nam fermentum, nibh in vehicula pretium, ligula nibh laoreet turpis, 
rhoncus dictum lectus libero id tellus.

Donec ultricies neque ut augue ultricies suscipit vitae nec leo. Sed 
porta congue elit auctor vestibulum. Ut id ornare lectus, in convallis 
urna. Nunc bibendum venenatis est, nec auctor nulla lacinia malesuada. 
Duis commodo elementum lacinia. Phasellus nibh lorem, cursus vitae 
mauris non, pretium dictum diam.

\end{document}

enter image description here

enter image description here

| improve this answer | |
  • 1
    Note that the OP uses a specific class - uscthesis - that is based on memoir. And, memoir has its own line-spacing techniques, perhaps not compatible/different from what is offered by setspace. – Werner Jul 4 '13 at 7:18
  • 2
    With memoir it should be Spacing rather than spacing. – egreg Jul 4 '13 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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