[pdftex] pdfscreen and table of contents

James Haefner jhaefner at biology.usu.edu
Thu Sep 11 00:58:36 CEST 2003


Hi,
Does anyone know how to do the following?
I want to create a screen version of a document using pdfscreen where the first 
page has a table of contents (with links to the sections and subsections, of 
course) AND the paneltoc also appears listing the table of contents, but not as 
a regular section.  That is, I want:
First Page to look like:
Contents
   link to section 1
     link to subsection 1.1
   link to section 2
     link to subsection 2.1
     link to subsection 2.2
   link to section3
...

and the paneltoc looks like:
Contents
Section 1
Section 2
Section 3
...

The pdfscreen manual says not to use tableofcontents with the paneltoc option.
The following workaround code sort of works, but it is very tedious and 
error-prone to make the Contents section.

\documentclass[a4paper]{article}
\usepackage{xspace,colortbl}
\usepackage[screen,panelright,code,paneltoc,sectionbreak]{pdfscreen}
\begin{document}
\section*{Contents}
\addcontentsline{toc}{section}{\numberline{}Contents}
\begin{itemize}
     \item \hyperref[sec1]{Section Bobs}
     \begin{itemize}
         \item \hyperref[sBob]{sub Bobs}
     \end{itemize}
     \item \hyperref[sec2]{Section Your}
     \begin{itemize}
         \item \hyperref[sEmily]{sub Your}
     \end{itemize}
     \item \hyperref[sec3]{Section Uncle}
\end{itemize}
\section{Sec Bob}\label{sec1}
text
\subsection{sSec1}\label{sBob}
stext
\section{Sec Your}\label{sec2}
text2
\subsection{sSec2}\label{sYour}
stext2
\section{Sec Uncle}\label{sec3}
text3
\end{document}

-- 
James W. Haefner             Email: jhaefner at biology.usu.edu
Dept Biology/Ecology Center  Voice: 435-797-3553
Utah State University        FAX:   435-797-1575
Logan, UT 84322-5305
Favorite URL: http://www.mauirealestate.net/video.html



More information about the pdftex mailing list