I'm using the style files given by my university for my thesis but they are quite old (eethesis document class). In my PDF output, the vertical space before and after the major headings in the table of contents is not consistent.
I want to insert a vertical space between a chapter heading and its first section (Refer to: Related question) but only if the chapter has any sections within. Currently the definitions for l@chapter
in eethesis.cls is given below
\def\l@chapter#1#2{\pagebreak[3]
\vskip 0.75em plus 1pt % space above chapter line
{\leftskip 2em\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent 2em\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima 4em\relax % width of box holding chapter number
\advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
\uppercase{#1}\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern
\@dotsep mu$}\hfill \nobreak \hbox to\@pnumwidth{\hfil\rm #2}\par}
\vskip 0em} % space below chapter line
and the definition of @chapter
in eethe12.sty is
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}
\typeout{\@chapapp\space\thechapter.}
\addcontentsline{toc}{chapter}{\protect
\numberline{\thechapter}\uppercase{#1}}
\else\addcontentsline{toc}{chapter}{#1}\fi
\chaptermark{#1}
% \addtocontents{toc}{\protect\vskip{0.75em plus 1pt}} % Add vertical space line
\if@twocolumn % Tests for two-column mode.
\@topnewpage[\@makechapterhead{#2}]
\else \@makechapterhead{\uppercase{#2}}
\@afterheading % Routine called after chapter and
\fi} % section heading.
Uncommenting the line - Add vertical space line - in the above definition does add a vertical space between the chapter heading and first section but it also increases the space between those chapters that have no sections.
What changes need to be done in order to get consistent spacing before and after all Chapter headings?
\section
in your.cls
class file? If no definition is given, then, please let us know in which document classeethesis.cls
is based