![从小框架中排除最后一张幻灯片和附录](https://linux22.com/image/462997/%E4%BB%8E%E5%B0%8F%E6%A1%86%E6%9E%B6%E4%B8%AD%E6%8E%92%E9%99%A4%E6%9C%80%E5%90%8E%E4%B8%80%E5%BC%A0%E5%B9%BB%E7%81%AF%E7%89%87%E5%92%8C%E9%99%84%E5%BD%95.png)
我正在使用默认的 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}