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!

Comments (0)

Files changed (1)

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{}%
   }
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.