Commits

Joseph Wright committed 60b9fe0

Use a string-based comparison for \includeonlylecture (closes #250)

Sanitising both the pieces of input allows for arbitrary content,
in particular the \jobname.

Comments (0)

Files changed (1)

base/beamerbasesection.sty

   \mode<all>
   \refstepcounter{lecture}
   \def\beamer@currentlecturelabel{#3}
+  \@onelevel@sanitize\beamer@currentlecturelabel
   \def\beamer@lecturename{#2}
   \def\beamer@shortlecturename{#1}
   \ifx\beamer@onlylecture\@empty
   \AtBeginLecture{}
 
   \newcommand\includeonlylecture[1]{%
-    \def\beamer@onlylecture{#1}}
+    \def\beamer@onlylecture{#1}%
+    \@onelevel@sanitize\beamer@onlylecture
+  }
 
   \includeonlylecture{}
 }