Commit 2ce4ad8e authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros

Added table of contents slide generator.

parent d197f21f
Pipeline #759 skipped
......@@ -56,8 +56,13 @@
\setbeamertemplate{itemize items}[circle]
\setbeamercolor{itemize item}{fg=black}
\setbeamercolor{itemize subitem}{fg=black}
\setbeamercolor{itemize subsubitem}{fg=black}
\newcommand{\fakeitem}{\,\ \ \ $\bullet$\ \,}
\setbeamercolor{enumerate item}{fg=black}
\setbeamercolor{enumerate subitem}{fg=black}
\setbeamercolor{enumerate subsubitem}{fg=black}
% Captions also in black.
\setbeamercolor{caption name}{fg=black}
......@@ -173,6 +178,62 @@
\pgfusepath{stroke}
}
%
% Table of contents.
%
% Change the section spacing.
\def\beamer@sectionintoc#1#2#3#4#5{%
\ifnum\c@tocdepth>0%
\ifnum#4=\beamer@showpartnumber%
{
\beamer@saveanother%
\gdef\beamer@todo{}%
\beamer@slideinframe=#1\relax%
\expandafter\only\beamer@tocsections{\gdef\beamer@todo{%
\beamer@tempcount=#5\relax%
\advance\beamer@tempcount by\beamer@sectionadjust%
\ifnum\beamer@tempcount>0
\edef\inserttocsectionnumber{\the\beamer@tempcount}%
\else
\def\inserttocsectionnumber{}%
\fi%
\def\inserttocsection{\hyperlink{Navigation#3}{#2}}%
\beamer@tocifnothide{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}%
{
\ifbeamer@pausesections\pause\fi%
\ifx\beamer@toc@ooss\beamer@hidetext
\vskip3pt % Section spacing.
\else
\vfill
\fi
{%
\hbox{\vbox{%
\def\beamer@breakhere{\\}%
\beamer@tocact{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}{section in toc}}}%
\par%
}%
}%
}
}%
\beamer@restoreanother%
}
\beamer@todo%
\fi\fi%
}
% Set colour and make the bullets plain.
\setbeamercolor{section in toc}{fg=black}
\providecommand{\makeTableOfContents}{
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\tableofcontents[subsectionstyle=hide/hide]
\end{frame}
}
% Title slide.
\providecommand{\makeTitleSlide}[1]{
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment