| 1 |
%% |
| 2 |
%% This is file `beamerswitch-example.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% beamerswitch.dtx (with options: `example') |
| 8 |
%% ---------------------------------------------------------------- |
| 9 |
%% beamerswitch --- Convenient mode selection in Beamer documents |
| 10 |
%% Author: Alex Ball |
| 11 |
%% E-mail: [email protected] |
| 12 |
%% License: Released under the LaTeX Project Public License v1.3c or later |
| 13 |
%% See: http://www.latex-project.org/lppl.txt |
| 14 |
%% ---------------------------------------------------------------- |
| 15 |
%% |
| 16 |
\documentclass[% |
| 17 |
beameroptions={ignorenonframetext,14pt}, |
| 18 |
articleoptions={a4paper,12pt}, |
| 19 |
also={trans,handout,article}]{beamerswitch} |
| 20 |
\handoutlayout{nup=3plus,border=1pt} |
| 21 |
\articlelayout{maketitle,frametitles=none} |
| 22 |
\usepackage[british]{babel} |
| 23 |
\mode<article>{ |
| 24 |
\usepackage[hmargin=3cm,vmargin=2.5cm]{geometry} |
| 25 |
} |
| 26 |
\mode<presentation>{ |
| 27 |
\usefonttheme{professionalfonts} |
| 28 |
} |
| 29 |
\mode<handout>{ |
| 30 |
\usecolortheme{dove} |
| 31 |
} |
| 32 |
\usepackage{libertine} |
| 33 |
|
| 34 |
\title{A demonstration of the \textsf{beamerswitch} class} |
| 35 |
\subtitle{Testing features} |
| 36 |
\author{Alex Ball\inst{1}} |
| 37 |
\institute{\inst{1}University of Life} |
| 38 |
\date{1 September 2016} |
| 39 |
\subject{A LaTeX class} |
| 40 |
\keywords{CTAN, literate programming} |
| 41 |
|
| 42 |
\begin{document} |
| 43 |
\begin{frame} |
| 44 |
\maketitle |
| 45 |
\end{frame} |
| 46 |
|
| 47 |
This very brief demonstration shows how to use the \textsf{beamerswitch} class. |
| 48 |
It allows easy switching between four \textsf{beamer} modes: |
| 49 |
|
| 50 |
\begin{frame}{Beamer modes} |
| 51 |
\begin{itemize}[<+->] |
| 52 |
\item \textbf{beamer:} regular slides |
| 53 |
\item \textbf{trans:} slides suitable for printing on transparencies |
| 54 |
\item \textbf{handout:} slides suitable for printing on paper |
| 55 |
\item \textbf{article:} transcript, paper, notes or other article-style |
| 56 |
document based on the slides |
| 57 |
\end{itemize} |
| 58 |
\end{frame} |
| 59 |
|
| 60 |
Notice how the text outside frames is only shown in article mode. Also, |
| 61 |
|
| 62 |
\begin{frame}{Features shown in this example} |
| 63 |
\begin{itemize}[<+->] |
| 64 |
\item Different class options are passed to the \textsf{beamer} and |
| 65 |
\textsf{article} classes. |
| 66 |
\item The `trans' and `handout' versions do not have the intermediate |
| 67 |
slides used by the `beamer' version for uncovering content. |
| 68 |
\item The handout has three slides to a page with room for handwritten |
| 69 |
notes at the side, and is in black and white. |
| 70 |
\end{itemize} |
| 71 |
|
| 72 |
\uncover<+->{See the source code of this example to see how it was done.} |
| 73 |
\end{frame} |
| 74 |
|
| 75 |
This PDF also has title and author information saved in the metadata (look |
| 76 |
at the properties in your PDF viewer). |
| 77 |
|
| 78 |
Happy {\LaTeX}ing! |
| 79 |
\end{document} |
| 80 |
%% |
| 81 |
%% Copyright (C) 2016-2022 by Alex Ball <[email protected]> |
| 82 |
%% |
| 83 |
%% End of file `beamerswitch-example.tex'. |