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 kabadshow1/beamertheme-juelich!11
parents 48b32256 2366ea2b
......@@ -44,10 +44,11 @@
}
}
\mode<handout>{%
\pgfkeys{/beamerfzj/.cd,
pages layout/.code={%
\usepackage{pgf}
\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{2}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
......@@ -65,6 +66,7 @@
\pgfpageslogicalpageoptions{14}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{15}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{16}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
}%
}
\mode<presentation>
......
......@@ -9,6 +9,11 @@
\titlegraphic{\includegraphics%
[width=\paperwidth]{placeholder}}
\mode<handout>{%
\fzjset{pages layout=2 on 1}%
}
\begin{document}
\maketitle
......
\part{Handouts}
\part{Theme Options}
\makepart
\section{Handouts}
\begin{frame}[fragile,label=handouts,t]
\frametitle{Create Handouts}
This theme features basic functionality for optimizing page layouts (for example for a handout).
\begin{block}{Switch and Setup Render Mode}
\scriptsize
\verb+\documentclass[handout]{beamer}+\\
\verb+\mode<handout>{+\\
\verb+\pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=5mm]}+
\verb+\mode<handout>{%+\\
\verb+ \fzjset{pages layout=2 on 1}}+
\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}
\scriptsize
\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