diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty index 7e3c3aee688..cf591367cda 100644 --- a/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty +++ b/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty @@ -1,6 +1,7 @@ % Copyright 2003--2007 by Till Tantau % Copyright 2010 by Vedran Mileti\'c % Copyright 2012,2013,2015 by Vedran Mileti\'c, Joseph Wright +% Copyright 2017 by Joseph Wright % % This file may be distributed and/or modified % @@ -32,21 +33,21 @@ \define@key{beamertoc}{subsectionstyle}{\beamer@toc@subsectionstyle{#1}} \define@key{beamertoc}{subsubsectionstyle}{\beamer@toc@subsubsectionstyle{#1}} \def\beamer@toc@process#1#2#3/#4/{% - \beamer@ifempty{#4}{\def#1{#3}\def#2{#3}}{\def#1{#3}\def#2{#4}\@gobble}} + \ifblank{#4}{\def#1{#3}\def#2{#3}}{\def#1{#3}\def#2{#4}\@gobble}} \def\beamer@toc@sprocess#1#2#3#4/#5/#6/{% - \beamer@ifempty{#5}% + \ifblank{#5}% {\def#1{#4}\def#2{#4}\def#3{#4}} - {\beamer@ifempty{#6} + {\ifblank{#6} {\def#1{#4}\def#2{#5}\def#3{#5}\@gobble} {\def#1{#4}\def#2{#5}\def#3{#6}\@gobbletwo}}} \def\beamer@toc@ssprocess#1#2#3#4#5/#6/#7/#8/{% - \beamer@ifempty{#6}% + \ifblank{#6}% {\def#1{#5}\def#2{#5}\def#3{#5}\def#4{#5}} - {\beamer@ifempty{#7} + {\ifblank{#7} {\def#1{#5}\def#2{#6}\def#3{#6}\def#4{#6}\@gobble} - {\beamer@ifempty{#8} + {\ifblank{#8} {\def#1{#5}\def#2{#6}\def#3{#7}\def#4{#7}\@gobbletwo} {\def#1{#5}\def#2{#6}\def#3{#7}\def#4{#8}\expandafter\@gobble\@gobbletwo}}}% no gobblethree? } @@ -99,6 +100,7 @@ \def\beamer@tocifnothide#1{\csname beamer@tocinvcheck@#1\endcsname} \let\beamer@tocinvcheck@hide\@gobble +\let\beamer@tocinvcheck@show\@firstofone \def\beamer@hidetext{hide} @@ -202,6 +204,9 @@ \mode <article> { + \long\def\beamer@sectionintoc#1#2#3#4#5{} + \long\def\beamer@subsectionintoc#1#2#3#4#5#6{} + \long\def\beamer@subsubsectionintoc#1#2#3#4#5#6#7{} \AtBeginDocument{ \let\beamer@origtableofcontents=\tableofcontents \renewcommand{\tableofcontents}[1][]{\beamer@origtableofcontents} |