我正在使用默认的 Beamer 主题创建演示文稿。我希望幻灯片顶部的迷你框架停在“结论”幻灯片上。“感谢”幻灯片和附录不应显示迷你框架。有什么想法可以做到这一点吗?
答案1
你可以使用这个技巧https://tex.stackexchange.com/a/439349/36296
\documentclass{beamer}
\useoutertheme{miniframes}
\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{title}
\begin{frame}
\frametitle{Conclusions}
abc
\end{frame}
\miniframesoff
\begin{frame}
Thank you
\end{frame}
\appendix
\begin{frame}
appendix
\end{frame}
\end{document}