# [OS X TeX] problem with MacTeX 2014 and media9 example.

Donald Petcher petcher at covenant.edu
Wed Jul 9 19:37:11 CEST 2014

Yesterday with some help from this list I got the simple file below working to play mp4 movies using media9.  Then I installed MacTeX 2014 on two machines.  The file still compiles fine on one, but now on the other I get the following error:

You can’t use ‘\dimexpr’ in horizontal mode.

Both machines still compile fine using MacTeX 2013.  I could not find any info on the web about this error other than some MikTeX users (PC of course) whose advice was to reinstall.  (I have reinstalled MacTeX 2014 but no change.) Any idea what the problem is?  Same file, two platforms, two different outcomes.  I suspect a legacy problem but I have no idea what it might be.

The file:

\documentclass{beamer}
\usepackage{media9}
\newcommand{\playmovie}[1]{\begin{figure}[ht]
flashvars={src=#1 &loop=false &autoPlay=true} ]{}{StrobeMediaPlayback.swf}
\end{figure} }
\begin{document}
\begin{frame}
\playmovie{MyMovie.mp4}
\end{frame}
\end{document}

—Don Petcher
petcher at covenant dot edu