Skip to content

Instantly share code, notes, and snippets.

@projekter
Created July 27, 2015 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save projekter/d111bbe87003b1f660da to your computer and use it in GitHub Desktop.
Save projekter/d111bbe87003b1f660da to your computer and use it in GitHub Desktop.
Example for dual screen PDF with navigation
% Adopted from http://tex.stackexchange.com/questions/232838/beamer-with-notes-on-the-left-have-navigation-links-working-both-on-slides-rig
\documentclass[handout]{beamer}
\usepackage{pgfpages,microtype}
\setbeameroption{show notes on second screen=left}
\usetheme[compress]{Singapore}
\makeatletter
\defbeamertemplate*{headline}{miniframes theme plus}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
%\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\vskip4pt\hbox{\insertnavigation{\paperwidth}\insertnavigation{\paperwidth}}\vskip2pt
\end{beamercolorbox}%
\ifbeamer@theme@subsection%
\begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\addtoheadtemplate{\pgfuseshading{beamer@headfade}\vskip-1.25cm}{}
%%%%%%%%%%%%%%%%%%%%
%ADDITIONAL CODE
%notes
\setbeamertemplate{note page}[plain] % Beamer manual, section 19.1
\newlength{\parskipbackup}
\setlength{\parskipbackup}{\parskip}
\newlength{\parindentbackup}
\setlength{\parindentbackup}{\parindent}
\newcommand{\baselinestretchbackup}{\baselinestretch}
\usetemplatenote{
\tiny
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\hbox{\hskip-30pt\insertnavigation{\paperwidth}}\vskip2pt
\end{beamercolorbox}%
\insertslideintonotes{0.3}
\setlength{\parindent}{1em} \setlength{\parskip}{1ex}%
\renewcommand{\baselinestretch}{1}%
\rmfamily \tiny %better \scriptsize for the handout
\insertnote%
\setlength{\parskip}{\parskipbackup}%
\setlength{\parindent}{\parindentbackup}%
\renewcommand{\baselinestretch}{\baselinestretchbackup}%
}
%%%%%%%%%%%%%%%%%%%%
\begin{document}
\section{Background}
\subsection{sub1}
\begin{frame}
Background -- sub1 -- Frame 1
\note{Notes}
\end{frame}
\begin{frame}
Background -- sub1 -- Frame 2
\note{Notes}
\end{frame}
\begin{frame}
Background -- sub1 -- Frame 3
\note{Notes}
\end{frame}
\subsection{sub2}
\begin{frame}
Background -- sub2
\note{Notes}
\end{frame}
\subsection{sub3}
\begin{frame}
Background -- sub3 -- Frame 1
\note{Notes}
\end{frame}
\begin{frame}
Background -- sub3 -- Frame 2
\note{Notes}
\end{frame}
\subsection{sub4}
\begin{frame}
Background -- sub4 -- Frame 1
\note{Notes}
\end{frame}
\begin{frame}
Background -- sub4 -- Frame 2
\note{Notes}
\end{frame}
\section{Importance and objective}
\subsection{sub1}
\begin{frame}
Importance and objective -- sub1
\note{Notes}
\end{frame}
\subsection{sub2}
\begin{frame}
Importance and objective -- sub2
\note{Notes}
\end{frame}
\subsection{sub3}
\begin{frame}
Importance and objective -- sub3
\note{Notes}
\end{frame}
\section{Methods}
\subsection{sub1}
\begin{frame}
Methods -- sub1
\note{Notes}
\end{frame}
\subsection{sub2}
\begin{frame}
Methods -- sub2
\note{Notes}
\end{frame}
\subsection{sub3}
\begin{frame}
Methods -- sub3
\note{Notes}
\end{frame}
\section{Results}
\subsection{sub1}
\begin{frame}
Results -- sub1
\note{Notes}
\end{frame}
\subsection{sub2}
\begin{frame}
Results -- sub2 -- Frame 1
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub2 -- Frame 2
\note{Notes}
\end{frame}
\subsection{sub3}
\begin{frame}
Results -- sub3 -- Frame 1
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub3 -- Frame 2
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub3 -- Frame 3
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub3 -- Frame 4
\note{Notes}
\end{frame}
\subsection{sub4}
\begin{frame}
Results -- sub4 -- Frame 1
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub4 -- Frame 2
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub4 -- Frame 3
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub4 -- Frame 4
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub4 -- Frame 5
\note{Notes}
\end{frame}
\begin{frame}
Results -- sub4 -- Frame 6
\note{Notes}
\end{frame}
\section{Future directions}
\subsection{sub1}
\begin{frame}
Future directions -- sub1
\note{Notes}
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment