Differences

This shows you the differences between two versions of the page.

Link to this comparison view

latex:movies [2013/07/04 08:45] (current)
Line 1: Line 1:
 +====== Embed movies in LaTeX-Documents ======
 +===== Requirements =====
 +Take a movie, e.g. {{:​latex:​movie.avi|movie.avi}} (1.5 MB), generated with the [[http://​mevislab.de/​|MeVisLab]]-file {{:​mevislab:​movie.mlab|movie.mlab}} (6 kB).
  
 +===== LaTeX-File =====
 +Use your preferred LaTeX-Editor to typeset {{:​latex:​movie.tex|this .tex-file}} (531 Bytes, really!), or just copy-paste the code below:
 +<code latex>
 +\documentclass[paper=a4]{scrartcl}
 +
 +\usepackage[ansinew]{inputenc} % needed for easy input of the '​ü'​ in my name
 +\usepackage{movie15} % needed for the inclusion of the movie
 +\usepackage{hyperref} % prerequisite for '​movie15'​
 +
 +\title{Movie-Example}
 +\author{David Haberthür}
 +
 +\begin{document}
 +\maketitle
 +\begin{figure}[htb]%
 +\centering%
 +  \includemovie[autoplay,​text=movie.avi]% parameters for movie15
 +  {.5\linewidth}{.5\linewidth}% height and width for display of the movie
 +  {movie.avi}% actual movie-file
 +\caption{Rotating vertebrae}%
 +\label{mov:​vertebrae}%
 +\end{figure}%
 +\end{document}
 +</​code>​
 +Both the .tex-file and the movie have to be in the same directory on your HD, or else you need to adjust the path to the file on line 16...
 +===== Result =====
 +After three compilations (needed by "​movie15"​ to resolve some internals) you should now have a pdf including your movie, which is viewable in Adobe Reader((According to the "​movie15"​-manual the resulting files only work with [[http://​adobe.com/​reader/​|Adobe Reader]], but most of them also work with the much faster and generally nicer [[http://​www.foxitsoftware.com/​pdf/​reader/​|Foxit Reader]])).
 +
 +You can also download an example-file as a {{:​latex:​movie.pdf|pdf}} (961 kB) to see for yourself without the whole LaTeX-Stuff. A player to actually display the embedded movies has to be installed on the host-computer,​ so make shure to include as "​basic"​ movies as possible (and no specialized [[http://​www.apple.com/​quicktime/​technologies/​h264/​|h.264-quicktime]] files or so :)