Commits

Joseph Wright committed 39bc573

Close \pause inside TikZ pictures (fixes #270)

The way \pause is set up means that it has to be cleanly closed at the
end of a picture, so add the appropriate code to the end command.

  • Participants
  • Parent commits 5cf6c55

Comments (0)

Files changed (1)

File base/beamerbaseoverlay.sty

   }
 }
 
+% Make sure \pause is correctly ended when used inside a TikZ picutre
+\AtBeginDocument
+  {
+    \begingroup\expandafter\expandafter\expandafter\endgroup
+    \expandafter\ifx\csname endtikzpicture\endcsname\relax
+    \else
+      \begingroup
+        \toks0\expandafter{\endtikzpicture}%
+        \xdef\endtikzpicture{\noexpand\beamer@endcovered\the\toks0}%
+      \endgroup
+    \fi
+  }
+
 \mode
 <all>