新加坡比默

新加坡比默

我對新加坡主題標題上出現的項目符號點有疑問。之前使用時沒有為大綱頁面新增項目符號

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

現在,每次更改部分時,我都會有一個額外的項目符號...有人知道如何解決這個問題嗎?

答案1

基於https://tex.stackexchange.com/a/45038/36296你可以這樣做:

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

在此輸入影像描述

相關內容