Title Page and TOC (Table of Contents) Page in LaTeX beamer

Oct. 21, 2023

While using LaTeX beamer to make slides, the title page and the TOC page won’t display without users’ declaration.

If want to show title page, we should add related information in preamble area:

1
2
3
4
5
\title{(Title)}
\subtitle{(Subtitle)}
\author{(Author)}
\date{\today}
\institute{(Institute)}

and then add the \titlepage in the first frame to show title page:

1
2
3
\begin{frame}
	\titlepage
\end{frame}

In the second frame, we could use \tableofcontents to show TOC page:

1
2
3
\begin{frame}
	\tableofcontents
\end{frame}

The sections and sub-sections are specified using \section and \subsection in the following text, and it should be noted that, there should be some frame(s) after \section and \subsection, otherwise the corresponding section or sub-section title won’t show in the TOC page.

A simple-but-complete example shows as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\documentclass{beamer}
\usetheme{Warsaw}

\title{(Title)}
\subtitle{(Subtitle)}
\author{(Author)}
\date{\today}
\institute{(Institute)}

\begin{document}
\begin{frame}
	\titlepage
\end{frame}

\begin{frame}
	\tableofcontents
\end{frame}

\section{Section I}
\subsection{Subsection I-(A)}
\begin{frame}{Title of Subsection I-(A)}{Subtitle of Subsection I-(A)}
\end{frame}

\subsection{Subsection I-(B)}
\begin{frame}{Title of Subsection I-(B)}{Subtitle of Subsection I-(B)}
\end{frame}

\section{Section II}
\subsection{Subsection II-(A)}
\begin{frame}{Title of Subsection II-(A)}{Subtitle of Subsection II-(A)}
\end{frame}

\subsection{Subsection II-(B)}
\begin{frame}{Title of Subsection II-(B)}{Subtitle of Subsection II-(B)}
\end{frame}

\end{document}

page-1

page-2

page-3

page-4

page-5

page-6


References

[1] 刘海洋编著. LaTeX入门. 北京: 电子工业出版社, 2013.6.