Next: , Previous: animation, Up: Base modules   [Contents][Index]


8.17 embed

This module provides an interface to the LaTeX package (included with MikTeX)

http://www.ctan.org/tex-archive/macros/latex/contrib/movie15

for embedding movies, sounds, and 3D objects into a PDF document. However, XeLaTeX users need to rename the modified version movie15_dvipdfmx.sty from

http://asymptote.svn.sourceforge.net/viewvc/asymptote/trunk/asymptote/patches/

to movie15.sty and place it in their LaTeX path.

The latest version of the movie15 package requires both pdflatex version 1.20 or later and the file

http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/ifdraft.dtx

which can be installed by placing it in a directory ifdraft in the local LaTeX directory (e.g. /usr/local/share/texmf/tex/latex/ifdraft) and executing in that directory the commands:

tex ifdraft.dtx
texhash

A more portable method for embedding movie files, which should work on any platform and does not require the movie15 or ifdraft packages, is provided by using the external module instead of embed. An example of these interfaces is provided in the file embeddedmovie.asy and externalmovie.asy in the animations subdirectory of the examples directory. For a higher quality movie generated directly by Asymptote, use the animate module along with the animate.sty package to embed a portable PDF animation (see animate).

An example of embedding U3D code is provided in the file embeddedu3d.asy.