no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | latex:movies [2020/06/10 21:42] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Embed movies in LaTeX-Documents ====== | ||
+ | ===== Requirements ===== | ||
+ | Take a movie, e.g. {{: | ||
+ | ===== LaTeX-File ===== | ||
+ | Use your preferred LaTeX-Editor to typeset {{: | ||
+ | <code latex> | ||
+ | \documentclass[paper=a4]{scrartcl} | ||
+ | |||
+ | \usepackage[ansinew]{inputenc} % needed for easy input of the ' | ||
+ | \usepackage{movie15} % needed for the inclusion of the movie | ||
+ | \usepackage{hyperref} % prerequisite for ' | ||
+ | |||
+ | \title{Movie-Example} | ||
+ | \author{David Haberthür} | ||
+ | |||
+ | \begin{document} | ||
+ | \maketitle | ||
+ | \begin{figure}[htb]% | ||
+ | \centering% | ||
+ | \includemovie[autoplay, | ||
+ | {.5\linewidth}{.5\linewidth}% height and width for display of the movie | ||
+ | {movie.avi}% actual movie-file | ||
+ | \caption{Rotating vertebrae}% | ||
+ | \label{mov: | ||
+ | \end{figure}% | ||
+ | \end{document} | ||
+ | </ | ||
+ | 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 " | ||
+ | |||
+ | You can also download an example-file as a {{: |