\documentclass{article}

\usepackage{advi}
\usepackage{hyperref}


\begin{document}

\title {Table of contents with \WhizzyTex and Advi}

\begin{abstract}
This explains and test the \string\tableofcontents
when using {\WhizzyTeX} with \texttt{advi}. 
\end{abstract}

\tableofcontents

%% \Whizy{\Meaning \contentsline}

\bigskip

\noindent 
It is actually an \texttt{advi} problem rather than a {\WhizzyTeX}
problem, which should load the \texttt{hyperref} package with the
driver \texttt{hypertex}.

Hence, the following two packages should be loaded in this order.
\begin{verbatim}
    \usepackage{advi}
    \usepackage{hyperref}
\end{verbatim}
so that the advi package correctly se the driver to be \texttt{hypertex}.
This will also instrument the command \string\contentsline to make the
corresponding page the \texttt{advi} ``\emph{Table of content}'' page. 

\section {Section 1}{Section 1}
\subsection {Section 1.1}{Subsection 1.1}
\subsection {Section 1.2}{Subsection 1.2}

\newpage 
 
\section {Section 2}{Section 2}
\subsection {Section 2.1}{Section 2.1}
\subsection {Section 2.2}{Section 2.2}

\end{document}   

