summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/beamer/examples/beamerexample2.tex
blob: ffcb103d9659d969b9b22717917c9b8fc7e1b2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
% $Header: /cvsroot/latex-beamer/latex-beamer/examples/beamerexample2.tex,v 1.8 2004/10/11 16:10:11 tantau Exp $

% This file is included by beamerexample2.article.tex and
% beamerexample2.beamer.tex 

% Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
%
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN
% archives in directory macros/latex/base/lppl.txt.

%
% The purpose of this example is to demonstrate the usage of the
% nameslide command
%

\mode<article>
{
  \usepackage{fullpage}
  \usepackage{pgf}
  \usepackage{hyperref}
  \setjobnamebeamerversion{beamerexample2.beamer}
}

\mode<presentation>
{
  \usetheme{Dresden}

  \setbeamercovered{transparent}
}

\usepackage[latin1]{inputenc}
\usepackage[english]{babel}


\title{Second Beamer Example}
\author{Till~Tantau}
\subject{Presentation Programs}

\institute[TU Berlin]{
  Fakultät für Elektrotechnik und Informatik\\
  Technical University of Berlin}


\begin{document}

\frame{\maketitle}

\section{The first section}

This is the first section of the article version. In the
presentation, there is a frame containing an overlay. The exact two
slides of this overlay are shown in Figures~\ref{figure-example1}
and~\ref{figure-example2}.

\begin{figure}[ht]
  \begin{center}
    \includeslide{exampleframe<1>}
  \end{center}
  \caption{The first slide. Note the partly covered second item.}
  \label{figure-example1}
\end{figure}

\begin{figure}[ht]
  \begin{center}
    \includeslide{exampleframe<2>}
  \end{center}
  \caption{The second slide. Now the second item is also shown.}
  \label{figure-example2}
\end{figure}

We can also include the frame in the article version ``just like
this'': 

\frame[label=exampleframe]{
  \frametitle{This is a frame with two overlays.}

  \begin{itemize}
  \item The first item$\dots$
    \pause
  \item $\dots$ and the second one.
  \end{itemize}
}

We could have suppressed the frame in the article version by adding
the overlay specification \verb!<presentation>!.

\end{document}



%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "beamerexample2.article"
%%% End: