我有以下 MWE,我试图在其中仅删除突出类型的幻灯片的页脚。对于所有其他类型的幻灯片,我都需要页脚。但是,使用我的 MWE,我必须在每个突出框架之后手动将页脚设置为打开或关闭。如何全局设置它,以便自动删除突出框架的页脚?
\documentclass[12pt]{beamer}
\usetheme{Copenhagen}
\title{The title of the paper}
\author{XYZ}
\date{\today}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\setbeamertemplate{footline}{}
\begin{frame}[standout]
Welcome!
\end{frame}
\begin{frame}{Methodology}
\tableofcontents
\end{frame}
\begin{frame}[standout]
Thank you!
\end{frame}
\end{document}
更新
根据 samcarter 的建议。我能够移除突出框架的页脚,但第一个突出框架之后的框架也会消失。我希望只在突出框架时关闭页脚。
\documentclass[12pt]{beamer}
\usetheme{Copenhagen}
% \usepackage{etoolbox}
% \BeforeBeginEnvironment{frame}{%
% \setbeamertemplate{footline}
% }
\makeatletter
\define@key{beamerframe}{standout}[true]{%
\setbeamertemplate{footline}{}%
}
\makeatother
\title{The title of the paper}
\author{XYZ}
\date{\today}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
% \setbeamertemplate{footline}{}
\begin{frame}[standout]
Welcome!
\end{frame}
\begin{frame}{Methodology}
\tableofcontents
\end{frame}
\begin{frame}[standout]
Thank you!
\end{frame}
\end{document}
答案1
\documentclass[12pt]{beamer}
\usetheme{Copenhagen}
% \usepackage{etoolbox} % automatically loaded by recent versions of beamer
\BeforeBeginEnvironment{frame}{%
\setbeamertemplate{footline}[split theme]
}
\makeatletter
\define@key{beamerframe}{standout}[true]{%
\setbeamertemplate{footline}{}%
}
\makeatother
\title{The title of the paper}
\author{XYZ}
\date{\today}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\begin{frame}[standout]
Welcome!
\end{frame}
\begin{frame}{Methodology}
\tableofcontents
\end{frame}
\begin{frame}[standout]
Thank you!
\end{frame}
\end{document}