Commits

Joseph Wright  committed f101392

Allow \onslide to remove <..> when 'doing no frame'

The < could cause an error, for example if an \item is wrapped up in \onslide.
See http://tex.stackexchange.com/questions/161385/conflict-enumerate-in-beamer.

  • Participants
  • Parent commits 905a39e

Comments (0)

Files changed (1)

File base/beamerbaseframe.sty

     \fi
   \fi%
   \beamer@howtotreatframe}
-\long\def\beamer@donoframe{%
+\def\gobble@onslide{%
+  \@ifnextchar<%>
+    \gobble@onslide@aux
+    \@firstofone
+}
+\def\gobble@onslide@aux<#1>{\@firstofone}
+\def\beamer@donoframe{%
   \beamer@slideinframe=1\relax%
   \setbox\beamer@tempbox\vbox\bgroup%
     \beamer@inframetrue%
     \leavevmode%
     \def\pause{}%
-    \def\onslide{}%
+    \let\onslide\gobble@onslide
     \afterassignment\beamer@checknoslide\let\beamer@next}
 \def\beamer@checknoslide{%
   \ifcat\bgroup\noexpand\beamer@next%