	% -*- Mode:Text -*- 

 \makeatletter
%\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
%  \fi
%  \@starttoc{toc}\if@restonecol\twocolumn\fi}
\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi
  \@starttoc{toc}\if@restonecol\twocolumn\fi}
\def\tableofcontents{\@starttoc{toc}}

\def\@starttoc#1{\begingroup
  \makeatletter  
  \@input{\jobname.#1}\if@filesw \expandafter\newwrite\csname tf@#1\endcsname
             \expandafter\openout \csname tf@#1\endcsname \jobname.#1\relax
  \fi
% \global\@nobreakfalse
  \endgroup}
 \makeatother
%========================================================================

\chapter{Table of Contents}

 \tableofcontents

