diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty index 5c648a24c10..c7e00cdcb26 100644 --- a/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty +++ b/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty @@ -8,7 +8,7 @@ % % See the file doc/licenses/LICENSE for more details. -\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamerbasesection.sty,v 22ff49def670 2012/05/30 21:50:05 joseph $ +\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamerbasesection.sty,v 0056eef6f17f 2012/11/11 21:00:02 joseph $ \mode <all> @@ -31,6 +31,17 @@ \newif\ifbeamer@inlecture \beamer@inlecturetrue +\newcommand{\beamer@if@in@clist@TF}[2]{% + \def\beamer@if@in@clist@aux##1,#2,{}% + \expandafter\expandafter\expandafter\ifx + \expandafter\expandafter\expandafter\@nil + \expandafter\beamer@if@in@clist@aux\expandafter,#1,{}{},#2,\@nil + \expandafter\@secondoftwo + \else + \expandafter\@firstoftwo + \fi +} + \newcounter{lecture} \renewcommand\thelecture{\@arabic\c@lecture} \let\insertlecturenumber=\thelecture @@ -44,11 +55,10 @@ \def\beamer@shortlecturename{#1} \ifx\beamer@onlylecture\@empty \else - \ifx\beamer@currentlecturelabel\beamer@onlylecture - \beamer@inlecturetrue - \else - \beamer@inlecturefalse - \fi + \expandafter\beamer@if@in@clist@TF\expandafter\beamer@onlylecture + \beamer@currentlecturelabel + {\beamer@inlecturetrue} + {\beamer@inlecturefalse} \fi \beamer@atbeginlecture \beamer@resumemode |