Commits

Vedran Miletić  committed 6d16117

Make Heiko's fix really work this time.

  • Participants
  • Parent commits 08e824c

Comments (0)

Files changed (1)

File base/beamerbasecompatibility.sty

 %
 % Heiko's fix for correct generation of section* and subsection* bookmarks
 %
-\long\def\@LongEmpty{}
-\newcommand*{\org@beamer@section}{}
-\let\org@beamer@section\beamer@section{}%
-\long\def\beamer@section[#1]#2{%
-  \let\org@writebookmark\Hy@writebookmark{}%
-  \long\def\@secname{#1}%
-  \ifx\@secname\@LongEmpty{}%
-    \def\Hy@writebookmark##1##2##3##4##5{}%
-  \fi
-  \long\def\@secname{#2}%
-  \ifx\@secname\@LongEmpty{}%
-    \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{}%
-  \long\def\@secname{#1}%
-  \ifx\@secname\@LongEmpty{}%
-    \def\Hy@writebookmark##1##2##3##4##5{}%
-  \fi
-  \long\def\@secname{#2}%
-  \ifx\@secname\@LongEmpty{}%
-    \def\Hy@writebookmark##1##2##3##4##5{}%
-  \fi
-  \org@beamer@subsection[{#1}]{#2}%
-  \let\Hy@writebookmark\org@writebookmark{}%
+\g@addto@macro\beamer@lastminutepatches{%
+  \long\def\@LongEmpty{}
+  \newcommand*{\org@beamer@section}{}
+  \let\org@beamer@section\beamer@section{}%
+  \long\def\beamer@section[#1]#2{%
+    \let\org@writebookmark\Hy@writebookmark{}%
+    \long\def\@secname{#1}%
+    \ifx\@secname\@LongEmpty{}%
+      \def\Hy@writebookmark##1##2##3##4##5{}%
+    \fi
+    \long\def\@secname{#2}%
+    \ifx\@secname\@LongEmpty{}%
+      \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{}%
+    \long\def\@secname{#1}%
+    \ifx\@secname\@LongEmpty{}%
+      \def\Hy@writebookmark##1##2##3##4##5{}%
+    \fi
+    \long\def\@secname{#2}%
+    \ifx\@secname\@LongEmpty{}%
+      \def\Hy@writebookmark##1##2##3##4##5{}%
+    \fi
+    \org@beamer@subsection[{#1}]{#2}%
+    \let\Hy@writebookmark\org@writebookmark{}%
+  }
 }
 
 %