Commits

Joseph Wright committed 1a3bb02

Use correct lables \AtBegin* (fixes issue #118)

  • Participants
  • Parent commits e0c5bfe

Comments (0)

Files changed (1)

base/beamerbaseframe.sty

   \beamer@inframefalse
 }
 
+\def\refcounter#1{\protected@edef\@currentlabel%
+       {\csname p@#1\endcsname\csname the#1\endcsname}}%
+
 
 %
 % Slide Definitions
     \beamer@inframetrue%
     \let\frame=\framelatex% inside frames, use LaTeX's \frame command
     \begin{beamer@framepauses}%
+      \refcounter{framenumber}%use frame number for  \label
       \ifbeamer@shrink%
         \hsize=\beamer@shrinkfactorinv\hsize%
         \textwidth=\beamer@shrinkfactorinv\textwidth%
   \ifbeamer@noframenumbering%
     \beamer@noframenumberingfalse%
   \else%
-    \refstepcounter{framenumber}%
+    \stepcounter{framenumber}%do not set \label here - it interferes with AtBegin*
   \fi%
   {\let\@elt\beamer@savecounter\beamer@overlaycounterresets}
   \gdef\beamer@framestartpage{}%