zetyty
I would like to display a table of contents on each sectionpage with metropolis theme.
## Attempt
I tried to modify `\AtBeginSection` as follows (see output below):
```
\documentclass{beamer}
\usetheme{metropolis}
\useoutertheme{miniframes}
\setbeamertemplate{footline}[page number]
\AtBeginSection{
\begingroup
\setbeamertemplate{footline}{}
\setbeamertemplate{headline}{}
\sectionpage
\tableofcontents[currentsection]
\endgroup
}
\begin{document}
\section{Section 1}
\begin{frame}
Test in section 1
\end{frame}
\section{Section 2}
\begin{frame}
Test in section 2
\end{frame}
\end{document}
```
## Problems
1. The footline and headline are not removed.
2. The text is shifted to the top of the page compared to with the original sectionpage text (which is positioned in the middle of a blank page).
## Additional element
I would like the sectionpage to not increase the number of page as the orignal sectionpage does.
## Outputs
My MWE output:
![image.png](/image?hash=1a0f7cc3ebd7b8376e4546cb661c9ba558dc899563fb971109a0d1607ab5e755)
Original sectionpage:
![image.png](/image?hash=3b8bdf8c96b5c32a4d45f4d3ccb4fb6cf5ea129127e63f6bf18a67b5a4639994)
Top Answer
samcarter
You could use a plain frame for the section page.
In addition, I would suggest to use the `moloch` theme instead of `metropolis`. It is a more modern fork which avoids most of the problems of the original `metropolis` theme.
```
\documentclass{beamer}
\usetheme{moloch}
\useoutertheme{miniframes}
\setbeamertemplate{page number in head/foot}[pagenumber]
\AtBeginSection{
\begingroup
\begin{frame}[plain]
\sectionpage
\tableofcontents[currentsection]
\end{frame}
\endgroup
}
\begin{document}
\section{Section 1}
\begin{frame}
Test in section 1
\end{frame}
\section{Section 2}
\begin{frame}
Test in section 2
\end{frame}
\end{document}
```
![document-1.png](/image?hash=e9be5d7a972403221ab5b98441948944538dce658c420cc3a2f6c95911fc8c22)