summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty27
1 files changed, 16 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty
index 4d97376915f..bef146280b4 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbasesection.sty
@@ -129,7 +129,7 @@
\protected\def\insertsubsubsectionhead{}%
\def\lastsubsection{}%
\protected\def\insertpart{\expandafter\hyperlink\partlink}%
- \Hy@writebookmark{\the\c@section}{#1}{Outline\the\c@part}{1}{toc}%
+ \Hy@writebookmark{\the\c@part}{#1}{Outline\the\c@part}{1}{toc}%
\hyper@anchorstart{Outline\the\c@part}\hyper@anchorend
\beamer@atbeginpart
\fi%
@@ -191,10 +191,10 @@
{\the\beamer@tocsectionnumber}}}%
{\let\\=\relax\xdef\sectionlink{{Navigation\the\c@page}{\noexpand\secname}}}%
\beamer@tempcount=\c@page\advance\beamer@tempcount by -1%
+ \addtocontents{nav}{\protect\headcommand{\protect\beamer@sectionpages{\the\beamer@sectionstartpage}{\the\beamer@tempcount}}}%
+ \addtocontents{nav}{\protect\headcommand{\protect\beamer@subsectionpages{\the\beamer@subsectionstartpage}{\the\beamer@tempcount}}}%
\ifblank{#1}{}{%
\addtocontents{nav}{\protect\headcommand{\protect\sectionentry{\the\c@section}{#1}{\the\c@page}{\secname}{\the\c@part}}}%
- \addtocontents{nav}{\protect\headcommand{\protect\beamer@sectionpages{\the\beamer@sectionstartpage}{\the\beamer@tempcount}}}%
- \addtocontents{nav}{\protect\headcommand{\protect\beamer@subsectionpages{\the\beamer@subsectionstartpage}{\the\beamer@tempcount}}}%
}%
\beamer@sectionstartpage=\c@page%
\beamer@subsectionstartpage=\c@page%
@@ -270,9 +270,9 @@
\addtocontents{toc}{\protect\beamer@subsectionintoc{\the\c@section}{\the\c@subsection}{#2}{\the\c@page}{\the\c@part}{\the\beamer@tocsectionnumber}}%
}%
\beamer@tempcount=\c@page\advance\beamer@tempcount by -1%
- \addtocontents{nav}{%
- \protect\headcommand{\protect\beamer@subsectionentry{\the\c@part}{\the\c@section}{\the\c@subsection}{\the\c@page}{\lastsubsection}}%
- \protect\headcommand{\protect\beamer@subsectionpages{\the\beamer@subsectionstartpage}{\the\beamer@tempcount}}%
+ \addtocontents{nav}{\protect\headcommand{\protect\beamer@subsectionpages{\the\beamer@subsectionstartpage}{\the\beamer@tempcount}}}
+ \ifblank{#1}{}{%
+ \addtocontents{nav}{\protect\headcommand{\protect\beamer@subsectionentry{\the\c@part}{\the\c@section}{\the\c@subsection}{\the\c@page}{\lastsubsection}}}
}%
\beamer@subsectionstartpage=\c@page%
\edef\subsectionlink{{Navigation\the\c@page}{\noexpand\subsecname}}%
@@ -282,7 +282,7 @@
\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}%
\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}%
\def\insertsubsubsectionhead{}%
- \Hy@writebookmark{\the\c@subsection}{#2}{Outline\the\c@part.\the\c@section.\the\c@subsection.\the\c@page}{3}{toc}%
+ \Hy@writebookmark{\the\c@subsection}{\subsecname}{Outline\the\c@part.\the\c@section.\the\c@subsection.\the\c@page}{3}{toc}%
\hyper@anchorstart{Outline\the\c@part.\the\c@section.\the\c@subsection.\the\c@page}\hyper@anchorend%
\ifblank{#2}{\beamer@atbeginsubsections}{\beamer@atbeginsubsection}%
\fi%
@@ -340,12 +340,14 @@
\addtocontents{toc}{\protect\beamer@subsubsectionintoc%
{\the\c@section}{\the\c@subsection}{\the\c@subsubsection}{#2}{\the\c@page}{\the\c@part}{\the\beamer@tocsectionnumber}}%
}%
- \addtocontents{nav}{\protect\headcommand{\protect\beamer@subsubsectionentry%
+ \ifblank{#1}{}{%
+ \addtocontents{nav}{\protect\headcommand{\protect\beamer@subsubsectionentry%
{\the\c@part}{\the\c@section}{\the\c@subsection}{\the\c@subsubsection}{\the\c@page}{\lastsubsubsection}}}%
+ }
\edef\subsubsectionlink{{Navigation\the\c@page}{\noexpand\subsubsecname}}%
\def\insertsubsubsection{\expandafter\hyperlink\subsubsectionlink}%
\def\insertsubsubsectionhead{#1}%
- \Hy@writebookmark{\the\c@subsubsection}{#2}{Outline\the\c@part.\the\c@section.\the\c@subsection.\the\c@subsubsection.\the\c@page}{4}{toc}%
+ \Hy@writebookmark{\the\c@subsubsection}{\subsubsecname}{Outline\the\c@part.\the\c@section.\the\c@subsection.\the\c@subsubsection.\the\c@page}{4}{toc}%
\hyper@anchorstart{Outline\the\c@part.\the\c@section.\the\c@subsection.\the\c@subsubsection.\the\c@page}\hyper@anchorend%
\ifblank{#2}{\beamer@atbeginsubsubsections}{\beamer@atbeginsubsubsection}%
\fi%
@@ -375,9 +377,12 @@
% Appendix stuff
%
+\newcommand<>\beamer@appendix{}
\newcommand<>\appendix{%
- \only#1{\part{\appendixname}
- \addtocontents{nav}{\protect\headcommand{\protect\beamer@appendixpages{\the\c@page}}}}}
+ \only#1{\part{\appendixname}%
+ \addtocontents{nav}{\protect\headcommand{\protect\beamer@appendixpages{\the\c@page}}}%
+ \global\let\appendix\beamer@appendix}%
+}
\mode
<article>