I'm writing a thesis and I'm trying to make the Table of Contents single spaced.
This question was asked before and I tried the following solution in my .tex file:
\begin{singlespace}
\tableofcontents
\end{singlespace}
but it didn't work (everything compiles fine but the Table of Contents is still double spaced). I looked into the .cls file I'm using - iitthesis.cls - which prefer not to change; I found this:
% \ssp : single-spacing
% \dsp : double-spacing
% \tsp : triple-spacing
\renewcommand{\normalsize}{\@normalsize}
\def\ssp{\def\baselinestretch{1.0}\large\normalsize}
\def\dsp{\def\baselinestretch{1.66}\large\normalsize}
\def\tsp{\def\baselinestretch{2.6}\large\normalsize}
...
\def\tableofcontents{
\begin{center}
\dsp{TABLE OF CONTENTS\\}
\end{center}
\ssp
\hfill Page\@starttoc{toc}}
So, is it the case that \dsp{TABLE OF CONTENTS\\} is overriding \begin{singlespace}? And if yes, how do I solve this? Should I define \tableofcontents in my .tex file as a new command that will override the one in the .cls file?