summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty39
1 files changed, 26 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
index f73034e32ba..ff24d87cdb0 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
@@ -1,4 +1,5 @@
-% Copyright 2007 by Till Tantau
+% Copyright 2003--2007 by Till Tantau
+% Copyright 2010 by Vedran Mileti\'c
%
% This file may be distributed and/or modified
%
@@ -7,10 +8,10 @@
%
% See the file doc/licenses/LICENSE for more details.
-\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/base/beamerbasetoc.sty,v 1.21 2007/01/28 20:48:21 tantau Exp $
+\ProvidesPackageRCS $Header: /home/vedran/bitbucket/beamer/base/beamerbasetoc.sty,v 8ad93b65b084 2010/06/06 13:05:23 rivanvx $
-
-\mode<presentation>
+\mode
+<presentation>
%
% Local counters/ifs/dimensions
@@ -26,11 +27,14 @@
\def\beamer@toc@sectionstyle#1{\beamer@toc@process\beamer@toc@cs\beamer@toc@os#1//}
\def\beamer@toc@subsectionstyle#1{\beamer@toc@sprocess\beamer@toc@css\beamer@toc@oss\beamer@toc@ooss#1///}
+\def\beamer@toc@subsubsectionstyle#1{\beamer@toc@ssprocess\beamer@toc@csss\beamer@toc@osss\beamer@toc@oosss\beamer@toc@ooosss#1////}
\define@key{beamertoc}{sectionstyle}{\beamer@toc@sectionstyle{#1}}
\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}}
+
\def\beamer@toc@sprocess#1#2#3#4/#5/#6/{%
\beamer@ifempty{#5}%
{\def#1{#4}\def#2{#4}\def#3{#4}}
@@ -38,6 +42,16 @@
{\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}%
+ {\def#1{#5}\def#2{#5}\def#3{#5}\def#4{#5}}
+ {\beamer@ifempty{#7}
+ {\def#1{#5}\def#2{#6}\def#3{#6}\def#4{#6}\@gobble}
+ {\beamer@ifempty{#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?
+}
+
\define@key{beamertoc}{pausesections}[true]{\beamer@pausesectionstrue}
\define@key{beamertoc}{pausesubsections}[true]{\beamer@pausesubsectionstrue}
@@ -60,6 +74,10 @@
\def\beamer@toc@css{show}%
\def\beamer@toc@oss{show}%
\def\beamer@toc@ooss{show}%
+ \def\beamer@toc@csss{show}%
+ \def\beamer@toc@osss{show}%
+ \def\beamer@toc@oosss{show}%
+ \def\beamer@toc@ooosss{show}%
\beamer@showpartnumber=\c@part%
\beamer@pausesectionsfalse%
\beamer@pausesubsectionsfalse%
@@ -72,6 +90,7 @@
\vfill}%
}
+\renewcommand\addcontentsline[3]{\addtocontents{#1}{\protect\contentsline{#2}{#3}}}
\def\beamer@tocaction@show#1{\usebeamertemplate**{#1}}
\def\beamer@tocaction@shaded#1{\usebeamertemplate**{#1 shaded}}
@@ -137,7 +156,7 @@
\def\inserttocsubsection{\hyperlink{Navigation#4}{#3}}%
\beamer@tocifnothide{\ifnum\c@section=#1\beamer@toc@oss\else\beamer@toc@ooss\fi}%
{%
- \def\beamer@breakhere{\\}%
+ \def\beamer@breakhere{\\}%
\beamer@tocact{\ifnum\c@section=#1\ifnum\c@subsection=#2\beamer@toc@css\else\beamer@toc@oss\fi\else\beamer@toc@ooss\fi}
{subsection in toc}%
}%
@@ -166,8 +185,8 @@
\def\inserttocsubsubsection{\hyperlink{Navigation#5}{#7}}%
\beamer@tocifnothide{\ifnum\c@section=#2\beamer@toc@oss\else\beamer@toc@ooss\fi}%
{%
- \def\beamer@breakhere{\\}%
- \beamer@tocact{\ifnum\c@section=#2\ifnum\c@subsection=#3\beamer@toc@css\else\beamer@toc@oss\fi\else\beamer@toc@ooss\fi}
+ \def\beamer@breakhere{\\}%
+ \beamer@tocact{\ifnum\c@section=#2\ifnum\c@subsection=#3\beamer@toc@css\else\beamer@toc@oss\fi\else\beamer@toc@ooss\fi\else\beamer@toc@oosss\fi\else\beamer@toc@ooosss\fi}
{subsubsection in toc}%
}%
}}%
@@ -187,11 +206,5 @@
}
-
\mode
<all>
-
-%%% Local Variables:
-%%% mode: latex
-%%% TeX-master: "~/texmf/tex/latex/beamer/examples/beamerexample1"
-%%% End: