beamer add tag
Dr. Manuel Kuehner
* This question is related to https://topanswers.xyz/tex?q=2042.
* There is a unexpected side effects: **Unwanted page number** on **(1)** title page frame (`\maketitle`), on **(2)** section slides, and on **(3)** frames with the **`plain` option**.
* How can we remove the page numbers from frames that normally no not have a page number (metropolis default).

```
% LuaLaTeX
\documentclass{beamer}

\usetheme{metropolis}

\title{title}
\subtitle{subtitle}
\date{date}
\author{author}

\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{\usebeamerfont{page number in head/foot}\usebeamercolor{page number in head/foot}\usebeamertemplate{page number in head/foot}}
\setbeamertemplate{page number in head/foot}[framenumber]

\begin{document}

\maketitle

\begin{frame}[plain]{TOC}
\tableofcontents
\end{frame}

\section{section}
\begin{frame}
\frametitle{frametitle}
    abc\footnote{Footnote text.}
\end{frame} 

\end{document}
```

![image.png](/image?hash=ea617cbd7aebc38d441596d6a1cf6351fd283d7e8d3b04db78c52661c42b257d)

![image.png](/image?hash=3e7d799f20894386fcc8d450bda4ed7deb9ab739d540e3344a7ca1518cb32696)
Top Answer
samcarter
Beamer jumps through a lot of hoops to add the `navigation symbols`-template (which now has your frame numbers) to plain frames, but we can sabotage this with `\patchcmd{\ps@empty}{\usebeamertemplate***{navigation symbols}}{}{}{}` :)

```
\documentclass{beamer}

\usetheme{moloch}% modern fork of the metropolis theme

\title{title}
\subtitle{subtitle}
\date{date}
\author{author}

\setbeamerfont{page number in head/foot}{size=\scriptsize}

\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{\usebeamerfont{page number in head/foot}\usebeamercolor{page number in head/foot}\usebeamertemplate{page number in head/foot}}
\setbeamertemplate{page number in head/foot}[framenumber]

\makeatletter
\patchcmd{\ps@empty}{\usebeamertemplate***{navigation symbols}}{}{}{}
\makeatother

\begin{document}

\maketitle

\begin{frame}[plain]{TOC}
\tableofcontents
\end{frame}

\section{section}
\begin{frame}
\frametitle{frametitle}
    abc\footnote{Footnote text.}
\end{frame} 

\end{document}
```

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.