The first problem I've already solved thanks to one of the older threads here. The second I can't find the answer to anywhere: how do I add extra lines between chapters in my Table of Contents without adding extra lines beneath sections?
This is what I have:
Code: Select all
\def\nnfootnote{%
\@ifnextchar [\@xfootnotenext
{\protected@xdef%
% \@thefnmark{\thempfn}% removed the number from FOOTNOTETEXT command:
\@thefnmark{ }%
\@footnotetext}}
%
\renewcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi
% \thispagestyle{myheadings}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline {\thechapter .}#1}% % I added . so there would be a period after roman numeral
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
\def\@makechapterhead#1{%
% \vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\centerline{\large\bfseries \@chapapp\space \thechapter}
\par\nobreak
\vskip 12\p@
\fi
\interlinepenalty\@M
\centerline{\large \bfseries \uppercase{#1}}\par\nobreak
\vskip 18\p@
}}
\def\@schapter#1{\if@twocolumn
\@topnewpage[\@makeschapterhead{#1}]%
\else
\@makeschapterhead{#1}%
\@afterheading
\fi}
\def\@makeschapterhead#1{%
%\vspace*{50\p@}%
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\centerline{\large \bfseries \uppercase{#1}}\par\nobreak
\vskip 18\p@
}}
Code: Select all
I. Introduction................................ 1
II. Chapter 2................................ 7
II.1 Subsection 1................................ 7
II.2 Subsection 2 ............................. 10
III. Chapter 3................................ 23
Code: Select all
I. Introduction................................ 1
II. Chapter 2................................ 7
II.1 Subsection 1................................ 7
II.2 Subsection 2 ............................. 10
III. Chapter 3................................ 23