1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
\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}
|