Torben Lund wrote:
> 
> Dear lyx-users
> 
> Is it possible to in include a movie (mpeg/avi/mov ...) in a PDF
> document using pdflatex?

To include avi files you can use the following command in the preamble:

\newcommand{\video}[5]{\vspace{#3}\hspace{#2}{\pdfannot width #4 height
#5 depth 0cm { /Subtype /Movie /C [1 0 0] /Border [0 0 3] /Movie
<</Poster true /F (#1)>> }}}


and then, by means of ERT

\video{g.avi}{4cm}{12cm}{12cm}{12cm}

where the first argument is the name of the file, and the 2nd and 3rd
control 
the location of one corner, and 4th and 5th  the width and height of the
box
You can control the color of the frame and thickness by modifying
/Border.

Hope it helps

PS If you are using linix the avi file won't display properly, as far as
I know, but the pdf can be created in linux and can be displayed
correctly in windoze

PS For the other formats, i.e. mpeg and mov I do not know if the trick
will work, I have never tried


> 
> Regards Torben Lund
> 
>   ------------------------------------------------------------------------
>                      Name: torbenl.vcf
>    torbenl.vcf       Type: VCard (text/x-vcard)
>                  Encoding: 7bit
>               Description: Card for Torben Lund

-- 
http://www.iit.upco.es/~oscar
You should emulate your heros, but don't carry it too far.  Especially
if they are dead.

Reply via email to