% -*- Mode: LaTeX -*-

%%% Mm-test.tex
%%%
%%% This file tests the margin-movies style option.
%%% Add twoside to the style options to see the two-sided mode.
%%%
%%% This test document creates two movies in each of the odd-side and
%%% even-side margins.  (The even-side movies only appear in twoside
%%% mode.)

\documentstyle[margin-movies]{report}

\newcommand{\movietest}[1]{\parbox{1in}{\raggedright
	Movie #1, Frame \themovieidx}}

\renewcommand{\oddmovies}{
  \moviebox[1in]{4}{\movietest{odd, top}}
  \vspace{1in}
  %% Comment out the following line if you don't have \psadobe.
  \movie{1.6in}{67}{cs-build-}{3}
	}

\renewcommand{\evenmovies}{
  \moviebox[1in]{3}{\movietest{even, top}}
  \vspace{1in}
  \moviebox[1in]{3}{\movietest{even, bottom}}}

%%% Set up the page parameters to make room for the movies.

\setlength{\evensidemargin}{1.1in}
\setlength{\moviewidth}{1in}
\setlength{\movietextsep}{.1in}
\addtolength{\textwidth}{-1.1in}  % Make room for the movies.
\setcounter{evenmoviestart}{6}	  % This gives us three frames worth.

%%% Include the Postscript inclusion macros

\input psadobe

\begin{document}
\moviestrue			  % Don't forget to turn on the movies!
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
Margin movie test document, page \thepage.\newpage
\end{document}
