Commits

Joseph Wright  committed 61e4d33

End covering in tikzpicture environment but not raw \tikz (fixes #275)

  • Participants
  • Parent commits 0a61d73

Comments (0)

Files changed (1)

File base/beamerbaseoverlay.sty

     \begingroup\expandafter\expandafter\expandafter\endgroup
     \expandafter\ifx\csname endtikzpicture\endcsname\relax
     \else
+      \newcommand*{\beamer@tikzpicture@env}{tikzpicture}
       \begingroup
         \toks0\expandafter{\endtikzpicture}%
-        \xdef\endtikzpicture{\noexpand\beamer@endcovered\the\toks0}%
+        \xdef\endtikzpicture{%
+          \noexpand\ifx\noexpand\beamer@tikzpicture@env\noexpand\@currenvir
+            \noexpand\expandafter\noexpand\beamer@endcovered
+          \noexpand\fi
+          \the\toks0
+        }%
       \endgroup
     \fi
   }