
Estou tendo um problema com os marcadores que aparecem no cabeçalho do tema Cingapura. Antes, ele não adicionava um marcador para a página de estrutura de tópicos ao usar
\AtBeginSection[]{
\begin{frame}{Outline}
\small \tableofcontents[currentsection, hideothersubsections]
\end{frame}
}
Agora tenho um marcador extra cada vez que mudo uma seção... alguém sabe como resolver esse problema?
Responder1
Baseado emhttps://tex.stackexchange.com/a/45038/36296você poderia fazer:
\documentclass[compress]{beamer}
\usetheme{Singapore}
\AtBeginSection[]{
\miniframesoff%
\begin{frame}
\frametitle{Outline}
\small \tableofcontents[currentsection, hideothersubsections]
\end{frame}
\miniframeson%
}
\makeatletter
\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry%
\def\beamer@writeslidentry@miniframesoff{%
\expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally
{%else
% removed \addtocontents commands
\clearpage\beamer@notesactions%
}
}
\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson}
\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}
\makeatother
\begin{document}
\section{sd}
\begin{frame}
abc
\end{frame}
\end{document}