1. Vedran Miletić
  2. beamer
  3. Issues
Issue #90 resolved

Bookmarks lost with the ignorenonframetext option

Anonymous created an issue

Hi all. This is a followup to issue #55 (-> http://bitbucket.org/rivanvx/beamer/issue/55/bookmarks-lost-in-presentation-mode <-)

The ignorenonframetext option also removes the bookmarks from the pdflatex output file. This is a change from old behavior and anyway this goes beyond the stated purpose.

Even adding hyperref={bookmarks=true} doesn't overcome this behavior.

Comments (7)

  1. Anonymous

    All right, here you are

    \documentclass[ignorenonframetext,xcolor={table,svgnames}]{beamer} %% slides
    %%%% Bookmarks appear if one uncomments the following line instead
    %%\documentclass[xcolor={table,svgnames}]{beamer} %% slides
    %%\documentclass[handout,xcolor={table,svgnames}]{beamer} %% handouts
    
    \usepackage{times}
    
    \mode<article> % only for the article version
    {
      \usepackage{fullpage}
      \usepackage{pgf}
      \usepackage[%
      colorlinks        =false,%    
      urlcolor          =green,%
      plainpages        =false,%
      % pdfpagemode       =None,%
      pdfpagelabels     =true,%
      % pdfstartview      =FitH,%     % Page fits horizontally.
      % pdfpagelayout     =SinglePage,% One page at a time
      bookmarks         =true,%
      bookmarksnumbered =true,%
      bookmarksopen     =true,%
      % bookmarksopenlevel=1,%
      % pdfborder         = {0 0 0}%    % No border
      naturalnames%                   % for algorithm2e
      ]{hyperref}
    }
    
    \mode<presentation>
    { 
      %%\usetheme{Montpellier} % handout
      \usetheme{Frankfurt} % slides
    
      \useinnertheme{rounded} % circles
     
      \usecolortheme{rose}
      \usecolortheme{sidebartab}
    
      \setbeamerfont{title}{shape=\itshape,family=\rmfamily}
      \setbeamercovered{dynamic}
    }
    
    \mode<handout>{
      \usepackage{pgfpages}
      \pgfpagesuselayout{2 on 1}[a4paper,border shrink=2mm,landscape]
    
      \useoutertheme{infolines}
    
      \setbeamercolor{background canvas}{bg=black!2} 
    }
    
    \institute[BUG]{%
      BUG\\
      \url{anonymous@buggy.com}}
    \date{\color{red}BUG\normalcolor}
    
    %%%%%%%%%%%%%%%%%%%%%%% Preamble ends here %%%%%%%%%%%%%%%%%%%%%%%%%%%
    \begin{document}
    
    \begin{frame}
      \titlepage
    \end{frame}
    
    \section*{Lecture contents}
    \begin{frame}
      \tableofcontents[pausesections]
    \end{frame}
    
    \section{Brief overview}
    \subsection{Goals of this session}
    \begin{frame}{Our goals}
      \begin{itemize}[<+->]
      \item Bug 1
      \item Bug 2
      \end{itemize}
    \end{frame}
    
    \subsection{Solutions}
    \begin{frame}{Our solutions}
      \begin{itemize}[<+->]
      \item Patch 1
      \item Patch 2
      \end{itemize}
    \end{frame}
    
    \section{Beamer everywhere}
    \subsection{Good doc}
    \begin{frame}{Good doc}
      \begin{itemize}
      \item Manual
      \item Tutorials
      \item Examples
      \end{itemize}
    \end{frame}
    
    \subsection{Only problem}
    \begin{frame}{New themes are a pain ...}
      \begin{itemize}[<+->]
      \item Configuration spread everywhere
      \item No theme template
      \end{itemize}
    \end{frame}
    
    \end{document}
    
    
    
    
    
  2. Anonymous

    Hi again, a new update.

    Seems to be a regression bug introduced some time along the way. It seems to be a bad interaction between the starred version of \section and the ignorenonframetext option of beamer. Could you fix this now?

    Thanks.

  3. Joseph Wright

    Alternative method to restore \Hy@writebookmarks

    This is needed as when \mode* is active, the old restore method is gobbled, and we can't really tack onto the end of \org@beamer@section as we don't know the arg. spec.

    This fixes issue #90, but needs some testing!

    17e820568435

  4. Anonymous

    Hi,

    Thanks for the fix. It worked.

    One point though: there is a glitch in the way the zip (and possibly gz and bz2 as well) downloadable source archive is built. The RCS expansion didn't take place so a drop-in replacement of beamerbasecompatibility.sty in my texmf tree results in a failure. I had to manually expand $Header: $ (see line 11 of said .sty file).

    I don't know if hg archive is enough with the hg keyword extension enabled.

  5. Log in to comment