0

I want to disable beamer's theming and \usetheme effect on the last page. Expected output is for the official form view similarly as in Fig. 1. I am gathering input from all other pages, and lastly, showing the result on the last page as A4 without any presentation formats from \usetheme.

Expected output: pages 1-2 presentation presentation theme, but last page A4 form without effect of \usetheme

Fig. 1 Example form

enter image description here

Code motivated by comments and their linked thread answers

\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}

Output: as expected in paper style but the style control tools are still there in Fig. 4

Fig. 4 Control tools wrongly visible on the last page

enter image description here

OS: Debian 9
TeXLive: 2017
PDF viewer: Adobe acroread installed like this

9
  • 1
    Maybe this this answer (using the pdfpages package) will do the trick?
    – David R
    Aug 7, 2017 at 15:51
  • 1
    Oh sorry, it looks like I misunderstood. I thought you wanted to insert a pdf (the form given) into a beamer presentation. Instead you just want to disable beamer's theming on a given slide, I think?
    – David R
    Aug 7, 2017 at 16:10
  • 2
    I'm not sure I understood what you want. But, would \begin{frame}[plain] do?
    – gusbrs
    Aug 7, 2017 at 22:57
  • 2
    Also, see tex.stackexchange.com/q/134876/105447. If I understood well, samcarter's answer is what you are looking for.
    – gusbrs
    Aug 7, 2017 at 23:07
  • 2
    Offtopic: Never use things like \section inside a frame, but always outside. Aug 8, 2017 at 15:10

1 Answer 1

2

Given the iteration in the comments, I'll try to answer, even though I'm still not clear on what the OP wants. If I understood correctly, you could try the following:

\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}
6
  • I think the only thing that is needed is \setbeamertemplate{navigation symbols}{} to remove navigation symbols. I think \begingroup ... \endgroup is not needed at all. What do you think? Aug 8, 2017 at 15:06
  • 1
    I was trying to make changes local, but I guess you are correct, if this one is indeed the last slide. In general, it would be more prudent, and I thing there's no harm in leaving it. So, apart from this, that was indeed what you were trying to achieve?
    – gusbrs
    Aug 8, 2017 at 15:13
  • 1
    I mean that if you use \begingroup/\endgroup if you include a new frame after \endgroup, the controls would return to defaults, because \setbeamertemplate would thus affect only what's within the group.
    – gusbrs
    Aug 8, 2017 at 15:19
  • 2
    Those are to restore \pdfpagewidth and \pdfpageheight to beamer's defaults, as in samcarter's answer. I'm not sure they are strictly necessary here with the use of the group, though. You can try things out a bit.
    – gusbrs
    Aug 8, 2017 at 15:27
  • I extend the case here tex.stackexchange.com/q/385431/13173 with affecting the margins of the plain page. Any ideas? Aug 8, 2017 at 17:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .