I have a long-standing problem with the button produced by the \movieref command from movie15 package. Briefly saying, it does not work at all if my document is compiled with XeLaTeX whereas the button operates as described in the movie15 manual if my document is compiled with pdflatex. Note that the source files for PdfLaTeX and XeLaTeX are slightly different. For XeLaTeX the document preamble contains


and for PDFLaTeX I am using


Other chunck of code is the same for both cases. First, I declare a \RunVideo command that is just an image used for the button:


Next I include my movie:

        % Enables mouse interaction: Clicking onto the media
        % (giving it the focus) pauses the playback while clicking
        % outside resumes it. Alternatively, once the media has
        % got the focus, repeated pressing of key ‘P’ on the keyboard
        % switches between Play and Pause (at least with some players).

And finally the button goes here:


If the document is compiled with PDFLaTeX clicking the button image cyclically starts/stops/resumes playback. Playback can also be stopped/resumed by clicking onto/outside the movie area. If the document is compiled with XeLaTeX only the second methods works, and clicking on the buttom has no effect at all.

Can someone explain if the code has some drawback of it is a bug of the movie15_dvipdfmx package?

  • 3
    movie15 has been superseded by media9, and XeTeX is mentioned in the manual. Does this new package work for you?
    – Joseph Wright
    Mar 24 '12 at 7:54
  • @Joseph Wright: media9 does not play my avi file encoded with xvid codec although movie15 did that. I tried examples that come media9 and they work fine. I have several avi files made using same technology (exported avi from Wolfram Mathematica and then encoded using VirtualDub) therefore I didnot tried any other codecs yet. Mar 26 '12 at 16:53

Browse other questions tagged or ask your own question.