Commits

Joseph Wright committed 17e8205

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!

  • Participants
  • Parent commits 041ad6e

Comments (0)

Files changed (1)

File base/beamerbasecompatibility.sty

   \long\def\@LongEmpty{}
   \newcommand*{\org@beamer@section}{}
   \let\org@beamer@section\beamer@section{}%
+  \let\org@writebookmark\Hy@writebookmark{}%
   \long\def\beamer@section[#1]#2{%
-    \let\org@writebookmark\Hy@writebookmark{}%
+    \let\Hy@writebookmark\org@writebookmark
     \long\def\@secname{#1}%
     \ifx\@secname\@LongEmpty{}%
       \def\Hy@writebookmark##1##2##3##4##5{}%
       \def\Hy@writebookmark##1##2##3##4##5{}%
     \fi
     \org@beamer@section[{#1}]{#2}%
-    \let\Hy@writebookmark\org@writebookmark{}%
   }
   \newcommand*{\org@beamer@subsection}{}
   \let\org@beamer@subsection\beamer@subsection{}%
   \long\def\beamer@subsection[#1]#2{%
-    \let\org@writebookmark\Hy@writebookmark{}%
+    \let\Hy@writebookmark\org@writebookmark
     \long\def\@secname{#1}%
     \ifx\@secname\@LongEmpty{}%
       \def\Hy@writebookmark##1##2##3##4##5{}%
       \def\Hy@writebookmark##1##2##3##4##5{}%
     \fi
     \org@beamer@subsection[{#1}]{#2}%
-    \let\Hy@writebookmark\org@writebookmark{}%
   }
 }