...
 
Commits (2)
  • Andreas Herten's avatar
    Implements a PGF Key for page layout; adapts tutorial · 2366ea2b
    Andreas Herten authored
    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.
    2366ea2b
  • Ivo Kabadshow's avatar
    Merge branch 'feature--page-layout' into 'master' · 6a120e11
    Ivo Kabadshow authored
    Implements a PGF Key for page layout; adapts tutorial
    
    See merge request !11
    6a120e11
......@@ -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]+
......