如果前面的项目的\only<X>{\includemovie}
叠加规格严格高于 X,比如说 Y > X,则不会显示电影。它似乎认为电影应该出现在幻灯片 Y 上,而不是 X 上。
最小测试用例:https://www.overleaf.com/read/pxvrsdgjscbc
\documentclass[draft]{beamer}
% Yeah, it's obsolete, but media9 is even more so now that Flash is dead
\usepackage{movie15}
% Notes from movie15:
% 1. Options `autopause' and `autoresume' should be set, as this prevents the
% movie from being rewound when passing from one overlay to the next.
%%%%% -> BTW I never got this to work, overlays always reset movies for me, tried in Okular and pympress.
\begin{document}
\begin{frame}[t]
\frametitle{Cool video frame}
Here is a cool movie coming up.
\visible<3->{That was a cool movie, eh?}
% This wouldn't break it, but the overlay spec cannot be after the movie
% \visible<2->{That was a cool movie, eh?}
\only<2>{
\centering
\includemovie[url]{0.8\linewidth}{.45\linewidth}{coolmovie.mp4}}
% This works, but limits us to only specify stuff after \includemovie
% \visible<3->{That was a cool movie, eh?}
\end{frame}
\end{document}
会发生什么:1
可以得到预期的结果仅有的放置\visible<3->{That was a cool movie, eh?}
后 \includemovie
(取消最后一个的注释)。2
Beamer Github 上出现了交叉引用问题,我认为这是一个错误:https://github.com/josephwright/beamer/issues/733