I've been trying to obtain some stylized handouts using beamer with handoutWithNotes by Guido. What I have now is the 4 framed handouts purely but I'd like to put the page number on the bottom of the handout page and kind of a header on the top.
Here's some minimal example:
\documentclass[12pt,xcolor=pdftex,dvipsnames,handout]{beamer}
\usetheme{Darmstadt}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[portuges,brazil]{babel}
\newcommand{\Autor}{Arthur Alvim}
\newcounter{countpag}
\setcounter{countpag}{0}
\title{Title}
\author{Author}
\date{\today}
%%%% Handouts
\usepackage{pgfpages}
% \usepackage{handoutWithNotes}
\include{style4x}
\pgfpagesuselayout{4 on 1 with notes}[a4paper,border shrink=5mm]
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\section{First section}
\subsection{First subsection}
\begin{frame}{First frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\begin{frame}{Second frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\subsection{Second subsection}
\begin{frame}{Third frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\begin{frame}{Fourth frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\section{Second section}
\subsection{First subsection}
\begin{frame}{First frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\begin{frame}{Second frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\subsection{Second subsection}
\begin{frame}{Third frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\begin{frame}{Fourth frame}
\begin{block}{First Block}
First Block
\end{block}
\begin{block}{Second Block}
Second Block
\end{block}
\begin{block}{Third Block}
Third Block
\end{block}
\end{frame}
\end{document}
This \include{style4x} is part of the code inside the package handoutWithNotes that I've extracted. Here it goes:
\pgfpagesdeclarelayout{4 on 1 with notes}{
\edef\pgfpageoptionheight{\the\paperheight}
\edef\pgfpageoptionwidth{\the\paperwidth}
\edef\pgfpageoptionborder{0pt}
}
{
\pgfpagesphysicalpageoptions{%
logical pages=8,%
physical height=\pgfpageoptionheight,%
physical width=\pgfpageoptionwidth,%
%last logical shipout=3%
last logical shipout=4%
}
\pgfpageslogicalpageoptions{1}{%
scale=.70,
center=\pgfpoint{.25\pgfphysicalwidth}{.875\pgfphysicalheight}%
}%
\pgfpageslogicalpageoptions{2}{%
scale=.70,
center=\pgfpoint{.25\pgfphysicalwidth}{.625\pgfphysicalheight}%
}%
\pgfpageslogicalpageoptions{3}{%
scale=.70,
center=\pgfpoint{.25\pgfphysicalwidth}{.375\pgfphysicalheight}%
}%
\pgfpageslogicalpageoptions{4}{%
scale=.70,
center=\pgfpoint{.25\pgfphysicalwidth}{.125\pgfphysicalheight}%
}%
\pgfpageslogicalpageoptions{5}{%
border shrink=\pgfpageoptionborder,%
resized width=.5\pgfphysicalwidth,%
resized height=.3333\pgfphysicalheight,%
center=\pgfpoint{.75\pgfphysicalwidth}{.875\pgfphysicalheight},%
copy from=5
}%
\pgfpageslogicalpageoptions{6}{%
border shrink=\pgfpageoptionborder,%
resized width=.5\pgfphysicalwidth,%
resized height=.3333\pgfphysicalheight,%
center=\pgfpoint{.75\pgfphysicalwidth}{.625\pgfphysicalheight},%
copy from=6
}%
\pgfpageslogicalpageoptions{7}{%
border shrink=\pgfpageoptionborder,%
resized width=.5\pgfphysicalwidth,%
resized height=.3333\pgfphysicalheight,%
center=\pgfpoint{.75\pgfphysicalwidth}{.375\pgfphysicalheight},%
copy from=7
}%
\pgfpageslogicalpageoptions{8}{%
border shrink=\pgfpageoptionborder,%
resized width=.5\pgfphysicalwidth,%
resized height=.3333\pgfphysicalheight,%
center=\pgfpoint{.75\pgfphysicalwidth}{.125\pgfphysicalheight},%
copy from=8
}%
\AtBeginDocument{
\newbox\notesbox
\setbox\notesbox=\vbox{
\hsize=\paperwidth
\vskip-1in\hskip-1in\vbox{
\color{black}{
\vskip1cm
Notes:\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth
}
}
}
\newbox\notesboxInitial
\setbox\notesboxInitial=\vbox{
\hsize=\paperwidth
\vskip-1in\hskip-1in\vbox{
\color{black}{
\vskip1cm
\centering{\Large{\textbf{\Autor => the rest do not appear \title - \author}}}
\vskip1cm
Notes:\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
}
}
}
\newbox\notesboxFinal
\setbox\notesboxFinal=\vbox{
\hsize=\paperwidth
\vskip-1in\hskip-1in\vbox{
\color{black}{
\vskip1cm
Notes:\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\hrule width\paperwidth\vskip1cm
\thepage \hfill -> do not increment \stepcounter{countpag} Page\arabic{countpag}
}
}
}
\pgfpagesshipoutlogicalpage{5}\copy\notesboxInitial
\pgfpagesshipoutlogicalpage{6}\copy\notesbox
\pgfpagesshipoutlogicalpage{7}\copy\notesbox
\pgfpagesshipoutlogicalpage{8}\copy\notesboxFinal
}
}
I've tried all these variables -> (\thepage, \insertpagenumber, \insertframenumber, \insertpresentationendpage, and created countpag) but in some way they don't change.
I think its a problem with the scope of the variables I'm using. So guys, what can we do to make these variables increment?
