I want to add a ToC at the beginning of each section in my presentation without showing the frame in the navigation bar. I tried the following:
\AtBeginSection[]
{
{
\makeatletter
\def\beamer@writeslidentry{\clearpage\beamer@notesactions}
\makeatother
\frame{
\frametitle{Table of contents}
\tableofcontents[
currentsection,
subsectionstyle=show/show/hide
]
}
}
}
This shows the frame correctly but does not hide it from the navigation bar. If I move the inner block to the beginning of each section manually, this works properly (see full code below).
How can I fix this?
I found the above on here but it was outside a AtBeginSection
:
Add section without appearance in navigation bar with Beamer v 3.50
How to remove some pages from the navigation bullets in Beamer?
Full example:
\documentclass[usenames,dvipsnames,svgnames,table]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetheme{Madrid}
\useoutertheme{miniframes}
\useinnertheme{circles}
% This one shows in the navigation bar -> Not good.
\AtBeginSection[]
{
{
\makeatletter
\def\beamer@writeslidentry{\clearpage\beamer@notesactions}
\makeatother
\frame{
\frametitle{Table of contents}
\tableofcontents[
currentsection,
subsectionstyle=show/show/hide
]
}
}
}
\begin{document}
\section{Section 1}
% This one does not show in the navigation bar -> Ok.
{
\makeatletter
\def\beamer@writeslidentry{\clearpage\beamer@notesactions}
\makeatother
\frame{
\frametitle{Table of contents}
\tableofcontents[
currentsection,
subsectionstyle=show/show/hide
]
}
}
\end{document}