Commit 6a120e11 authored by Ivo Kabadshow's avatar Ivo Kabadshow

Merge branch 'feature--page-layout' into 'master'

Implements a PGF Key for page layout; adapts tutorial

See merge request !11
parents 48b32256 2366ea2b
Pipeline #24813 passed with stage
in 1 minute and 22 seconds
...@@ -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