如何在最后一页禁用 Beamer 的主题?

如何在最后一页禁用 Beamer 的主题?

我想\usetheme在最后一页禁用 beamer 的主题和效果。预期输出与图 1 中的官方表单视图类似。我正在收集所有其他页面的输入,最后在最后一页上以 A4 格式显示结果,没有任何演示格式\usetheme

预期输出:1-2 页演示了演示主题,但最后一页 A4 表格没有效果\usetheme

图 1 示例表格

在此处输入图片描述

代码灵感来源于评论及其链接的主题答案

\documentclass{beamer}    
\usepackage[english]{babel}    
\usetheme{Berkeley} 
\logo{
%% llx lly urx ury
\includegraphics[trim=8cm 2cm 11cm 2cm,clip, height=\headheight, width=\headheight]{example-image}
}

%\usepackage{hyperref} % Not needed!
\begin{document}

% https://tex.stackexchange.com/a/384801/13173

% Take data input from Page 1
\begin{frame}
\frametitle{muuttujat}
\section{1. taidot} 

\begin{Form}
\begin{enumerate}
\item \ChoiceMenu[name=football,radio,default=-0]{Do you play football?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\item \ChoiceMenu[name=ice-hockey,radio,default=-0]{Do you play ice-hockey?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\end{enumerate}
\end{Form}
\end{frame}

% Take data input from Page 2
\begin{frame}
\section{2. lorem}

\begin{Form}
\begin{enumerate}
\item \ChoiceMenu[name=soccer,radio,default=-0]{Do you play football?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\item \ChoiceMenu[name=earth-hockey,radio,default=-0]{Do you play ice-hockey?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\end{enumerate}
\end{Form}
\end{frame}

% https://tex.stackexchange.com/a/385265/13173
\pdfpagewidth 21cm
\pdfpageheight 29.7cm

% Show summary here from Page 1 and 2
\begin{frame}[plain]
\vskip1cm
\begin{minipage}{19cm}
    \frametitle{START}
    \section{Summary}
    \begin{Form}
    \TextField[readonly=true,value=0,calculate={event.value=this.getField("football").value+this.getField("ice-hockey").value+this.getField("soccer").value+this.getField("earth-hockey").value;}]{Summary score:}
\end{Form}
\end{minipage}
\end{frame}

\makeatletter
\pdfpagewidth \beamer@paperwidth
\pdfpageheight \beamer@paperheight
\makeatother

\end{document}

输出:与论文样式一致,但样式控制工具仍然存在(如图 4 所示)

图 4 控制工具错误地显示在最后一页

在此处输入图片描述

操作系统:Debian 9
TeXLive:2017
PDF 查看器:Adobeacroread安装如下

答案1

鉴于评论中的迭代,我会尝试回答,尽管我仍然不清楚 OP 想要什么。如果我理解正确,您可以尝试以下操作:

\documentclass{beamer}    
\usepackage[english]{babel}    
\usetheme{Berkeley} 

\begin{document}

% Take data input from Page 1
\section{1. taidot} 
\begin{frame}
\frametitle{muuttujat}   
\begin{Form}
\begin{enumerate}
\item \ChoiceMenu[name=football,radio,default=-0]{Do you play football?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\item \ChoiceMenu[name=ice-hockey,radio,default=-0]{Do you play ice-hockey?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\end{enumerate}
\end{Form}
\end{frame}

% Take data input from Page 2
\section{2. lorem}
\begin{frame}
\begin{Form}
\begin{enumerate}
\item \ChoiceMenu[name=soccer,radio,default=-0]{Do you play football?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\item \ChoiceMenu[name=earth-hockey,radio,default=-0]{Do you play ice-hockey?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
\end{enumerate}
\end{Form}
\end{frame}

\begingroup
% https://tex.stackexchange.com/a/385265/13173
\pdfpagewidth 21cm
\pdfpageheight 29.7cm

% Show summary here from Page 1 and 2
\setbeamertemplate{navigation symbols}{}%remove navigation symbols
\begin{frame}[plain]
\vskip1cm
\begin{minipage}{19cm}
    \frametitle{START}
    \section{Summary}
    \begin{Form}
    \TextField[readonly=true,value=0,calculate={event.value=this.getField("football").value+this.getField("ice-hockey").value+this.getField("soccer").value+this.getField("earth-hockey").value;}]{Summary score:}
\end{Form}
\end{minipage}
\end{frame}

% these below eventually are not needed, if this is the last slide of your document

\makeatletter
\pdfpagewidth \beamer@paperwidth
\pdfpageheight \beamer@paperheight
\makeatother
\endgroup    

\end{document}

相关内容