Commit 2366ea2b authored by Andreas Herten's avatar Andreas Herten

Implements a PGF Key for page layout; adapts tutorial

In accordance to what was discussed in #3, this implements a PGF Key to steer the multi page layout, `page layout`. Per default, it is not used. When it is used, the option to the key is directly passed to `\pgfpagesuselayout{OPT}`, for example `\fzjset{page layout=2 on 1}`.

Since the page layout is actually different from handout, I removed the `\mode<handout>` part from the key's definition. Users should rather wrap the `\fzjset` call in the `\mode<handout>` macro.

The tutorial has been changed to reflect (and explain) that; the minimal_handout.tex file changed as well.
parent 86f3c109
...@@ -44,10 +44,11 @@ ...@@ -44,10 +44,11 @@
} }
} }
\mode<handout>{% \pgfkeys{/beamerfzj/.cd,
pages layout/.code={%
\usepackage{pgf} \usepackage{pgf}
\usepackage{pgfpages} \usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] \pgfpagesuselayout{#1}[a4paper,border shrink=5mm]
\pgfpageslogicalpageoptions{1}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke} \pgfpageslogicalpageoptions{1}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{2}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke} \pgfpageslogicalpageoptions{2}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
...@@ -65,6 +66,7 @@ ...@@ -65,6 +66,7 @@
\pgfpageslogicalpageoptions{14}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke} \pgfpageslogicalpageoptions{14}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{15}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke} \pgfpageslogicalpageoptions{15}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{16}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke} \pgfpageslogicalpageoptions{16}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
}%
} }
\mode<presentation> \mode<presentation>
......
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
\titlegraphic{\includegraphics% \titlegraphic{\includegraphics%
[width=\paperwidth]{placeholder}} [width=\paperwidth]{placeholder}}
\mode<handout>{%
\fzjset{pages layout=2 on 1}%
}
\begin{document} \begin{document}
\maketitle \maketitle
......
\part{Handouts} \part{Theme Options}
\makepart \makepart
\section{Handouts} \section{Handouts}
\begin{frame}[fragile,label=handouts,t] \begin{frame}[fragile,label=handouts,t]
\frametitle{Create Handouts} \frametitle{Create Handouts}
This theme features basic functionality for optimizing page layouts (for example for a handout).
\begin{block}{Switch and Setup Render Mode} \begin{block}{Switch and Setup Render Mode}
\scriptsize \scriptsize
\verb+\documentclass[handout]{beamer}+\\ \verb+\documentclass[handout]{beamer}+\\
\verb+\mode<handout>{+\\ \verb+\mode<handout>{%+\\
\verb+\pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=5mm]}+ \verb+ \fzjset{pages layout=2 on 1}}+
\end{block} \end{block}
The options to \verb+pages layout+ are directly passed to \verb+\pgfpagesuselayout{OPT}[a4paper,border shrink=5mm]+ and borders for the slides are enabled. Fore more options, call \verb+\pgfpagesuselayout+ explicitly:
\begin{block}{Define Number of Pages per Sheet} \begin{block}{Define Number of Pages per Sheet}
\scriptsize \scriptsize
\verb+\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]+ \verb+\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]+
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment