Latex table of contents slide code example
Example: add index in beamer latex
\documentclass{beamer}
\usepackage[utf8]{inputenc}
%%%%%%%
Initialize the title of the presentation
%%%%%%%
\begin{document}
\frame{\titlepage}
\begin{frame}{Overview}
\tableofcontents
\end{frame}
\section{Random section}
%%%%%
Some content
%%%%%
\section{Another random section}
%%%%%
Other content
%%%%%
\end{document}