Sharedwww / courses / xtocinc.styOpen in CoCalc
Author: William A. Stein
1
% -------------------------------------------------------------------
2
% Include Table of Contents in the Table of Contents
3
% Change spacing
4
% Modified by Alex, October 1994
5
% Bug Fix: TOC Page number when TOC spans over one page (November, 1999)
6
\newlength{\tclineskip}
7
\setlength{\tclineskip}{\baselineskip}
8
\def\@addcontentsline#1#2#3{\[email protected] \begingroup
9
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
10
\def\protect##1{\string\string\string##1\string\space
11
\space}\@temptokena{\thepage}%
12
\edef\@tempa{\immediate\write
13
\@auxout{\string\@writefile{#1}{\protect
14
\contentsline{#2}{#3}{\the\@temptokena}}}}\@tempa
15
\[email protected] \ifvmode\nobreak\fi\fi\endgroup\fi}
16
\def\tableofcontents{\@restonecolfalse\[email protected]\@restonecoltrue\onecolumn
17
\fi\chapter*{Table of Contents\@mkboth{CONTENTS}{CONTENTS}}
18
\newlength{\@defbaselineskip}
19
\setlength{\@defbaselineskip}{\baselineskip}
20
\setlength{\baselineskip}{\tclineskip}
21
\addcontentsline{toc}{chapter}{Table of Contents}
22
\@starttoc{toc}
23
\setlength{\baselineskip}{\@defbaselineskip}
24
\[email protected]\twocolumn\fi
25
\relax}
26
% -------------------------------------------------------------------
27