Debian Codegraph @

texmf-dist/doc/latex/movie15/overlay-example.tex

raw
1 % Copyright 2006 Alexander Grahn
2 %
3 % This material is subject to the LaTeX Project Public License. See
4 % http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
5 % for the details of that license.
6 %
7 \documentclass{beamer}
8 \setbeamertemplate{navigation symbols}{}
9 \usepackage{movie15}
10
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 % Some hints on using movie15 with /presentation/ packages
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 % 1. Options `autopause' and `autoresume' should be set, as this prevents the
16 % movie from being rewound when passing from one overlay to the next.
17
18 % 2. Within presentations, \movieref's must be put on the /same/ overlay as
19 % their target.
20
21 % 3. If the /same/ media file is to be inserted at multiple locations within a
22 % presentation, all instances must be given unique labels using the `label'
23 % option, even if no \movieref's are associated with the included media.
24
25 \begin{document}
26 \begin{frame}
27 \begin{itemize}
28 \item<+-> 1st overlay
29 \item<+-> 2nd overlay
30 \begin{center}
31 \includemovie[
32 poster,
33 autopause, autoresume,
34 text={\parbox{0.35\linewidth}{\tiny
35 http://www.linux-video.net/\\Samples/Mpeg1/AlienSong.mpg%
36 }},
37 playerid=AAPL_QuickTime,
38 url
39 ]{0.4\linewidth}{0.3\linewidth}{%
40 http://www.linux-video.net/Samples/Mpeg1/AlienSong.mpg%
41 }
42 \end{center}
43 \item<+-> 3rd overlay
44 \item<+-> 4th overlay
45 \end{itemize}
46 \end{frame}
47 \end{document}