我对新加坡主题标题上显示的项目符号有问题。以前,使用时,它不会为大纲页面添加项目符号
\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}