4

I having a problem with the bullets points that appears on the header of the Singapore theme. Before, it didn't add a bullet point for the outline page when using

\AtBeginSection[]{
  \begin{frame}{Outline}
  \small \tableofcontents[currentsection, hideothersubsections]
  \end{frame} 
}

Now I have an extra bullet each time I change a section... does anybody knows how to solve this problem ?

TeXnician
  • 33,589
A. Vero
  • 41
  • 2

1 Answers1

4

Based on https://tex.stackexchange.com/a/45038/36296 you could do:

\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}

enter image description here

  • Does do not solve the problem, because I want to maintain the bullets points in different lines for each subsection... – A. Vero Oct 07 '18 at 08:20
  • @A.Vero Please make a minimal working example (MWE) that demonstrates your problem. – samcarter_is_at_topanswers.xyz Oct 07 '18 at 09:28
  • \documentclass[slidetop]{beamer} \mode \usepackage{etex} \usetheme{Singapore}

    \begin{document}

    \section{Section 1} \frame{\frametitle{Frame 1}} \frame{\frametitle{Frame 2}}

    \subsection{Subsection 1.1} \frame{\frametitle{Frame 1}} \frame{\frametitle{Frame 2}} \frame{\frametitle{Frame 3}} \frame{\frametitle{Frame 4}}

    \subsection{Subsection 1.2} \frame{\frametitle{Frame 1}} \frame{\frametitle{Frame 2}} \frame{\frametitle{Frame 3}} \frame{\frametitle{Frame 4}}

    \end{document}

    – A. Vero Oct 08 '18 at 11:52