Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having trouble understanding how the panel table of contents of the pdfscreen package works. The only thing that I got from the documentation was that in an article-type document, the section names will become the default items in the table of contents, and that \tableofcontents should not be used in the body. So I did as instructed and created a test presentation from one of the templates online:

\documentclass[titlepage]{article}
\usepackage{xspace,colortbl}
\usepackage[screen,panelright,code,sectionbreak,paneltoc,chocolate]{pdfscreen}
 \margins{.5in}{.5in}{.5in}{.5in}
 \screensize{6in}{8in}

\usepackage{amsmath}


\title{\Huge\textbf{My Title}}
\    author{\Large M. Y. Name \\  
  {Department} \\
  {Organization} }


\setcounter{secnumdepth}{2}
\definecolor{darkblue}{rgb}{0,0,0.635}
%\maketitle

\begin{screen}
% \margins{.65in}{.65in}{.65in}{.65in}
 \margins{.35in}{.45in}{.35in}{.35in}
 %\screensize{6.25in}{8in}
 \screensize{5.25in}{7in}
 %\changeoverlay
 \paneloverlay{but.pdf}
 %\overlay{logo.pdf}
 \def\pfill{\vskip6pt}
 \definecolor{panelbackground}{rgb}{0.5,0.5,0.9}
 \backgroundcolor{white}
 \paneloverlayempty
\end{screen}
\setlength{\parindent}{0cm}

\begin{document}
\maketitle

\section{Overview}
Lorem
\section{Body}
Ipsum
\section{Summary}
Dolor
\end{document}

In a normal LaTeX document, the table of contents are updated after compiling twice. However, here I am unable to get the TOC to update after I modify my section headings or such. I do not understand this, as it appears rather ad-hoc (I made some changes, they did not appear after multiple compilations. I removed them, and the earlier sections appeared). Does anyone know what is happening and how to fix this so that I know the most recent table of contents will appear when I am making the presentation?


UPDATE: Gonzalo's solution works. There is another inelegant way through which i got it to work, though I don't know the exact mechanism. In the body, introduce the \tableofcontents and compile (twice). This suppresses anything that the package itself does and you get an updated table of contents. Now remove the TOC and the default pdfscreen table of contents takes over, with the updated contents.

share|improve this question
    
I do not have enough reputation to create it, but I think pdfscreen should have a tag of its own. –  yayu Sep 12 '11 at 22:23
add comment

1 Answer

up vote 1 down vote accepted

Remove the auxiliary file .toc and compile again (two times).

share|improve this answer
    
Sorry, I don't understand. I don't see a .toc file. –  yayu Sep 12 '11 at 23:18
    
@yayu: in the same directory where your .tex file resides, there should be a file <your_file_name>.toc; delete this file before compiling. –  Gonzalo Medina Sep 12 '11 at 23:23
    
Thanks. That worked. I also discovered a crude workaround that I have added to my question for the record. –  yayu Sep 12 '11 at 23:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.