Commits

Vedran Miletić committed e0d9401

Add lastsection per issue #38.

Comments (0)

Files changed (1)

base/beamerbasesection.sty

   \ifbeamer@inlecture
     \refstepcounter{section}%
     \beamer@ifempty{#2}%
-    {\long\def\secname{#1}}%
+    {\long\def\secname{#1}\long\def\lastsection{#1}}%
     {\global\advance\beamer@tocsectionnumber by 1\relax%
-      \long\def\secname{#2}\addtocontents{toc}{\protect\beamer@sectionintoc{\the\c@section}{#2}{\the\c@page}{\the\c@part}%
+      \long\def\secname{#2}%
+      \long\def\lastsection{#1}%
+      \addtocontents{toc}{\protect\beamer@sectionintoc{\the\c@section}{#2}{\the\c@page}{\the\c@part}%
         {\the\beamer@tocsectionnumber}}}%
     {\let\\=\relax\xdef\sectionlink{{Navigation\the\c@page}{\noexpand\secname}}}%
     \beamer@tempcount=\c@page\advance\beamer@tempcount by -1%