![如何使用 media9 水平嵌入 3 个视频?](https://linux22.com/image/262071/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20media9%20%E6%B0%B4%E5%B9%B3%E5%B5%8C%E5%85%A5%203%20%E4%B8%AA%E8%A7%86%E9%A2%91%EF%BC%9F.png)
我正在使用media9
包。我想水平插入 3 个视频,然后在下一行再插入 2 个视频。
\includemedia[
activate=pageopen,
width=50pt,height=50pt,
addresource=camera1-.mp4,
flashvars={%
source=camera1-.mp4% same path as in addresource!
&autoPlay=true% % optional configuration
&loop=true% % variables
}
]{}{VPlayer.swf}
\includemedia[
activate=pageopen,
width=50pt,height=50pt,
addresource=camera2-.mp4,
flashvars={%
source=camera2-.mp4% same path as in addresource!
&autoPlay=true% % optional configuration
&loop=true% % variables
}
]{}{VPlayer.swf}
\includemedia[
activate=pageopen,
width=50pt,height=50pt,
addresource=camera6-.mp4,
flashvars={%
source=camera6-.mp4% same path as in addresource!
&autoPlay=true% % optional configuration
&loop=true% % variables
}
]{}{VPlayer.swf}
\includemedia[
activate=pageopen,
width=50pt,height=50pt,
addresource=camera4-.mp4,
flashvars={%
source=camera4-.mp4% same path as in addresource!
&autoPlay=true% % optional configuration
&loop=true% % variables
}
]{}{VPlayer.swf}
\includemedia[
activate=pageopen,
width=50pt,height=50pt,
addresource=camera7-.mp4,
flashvars={%
source=camera7-.mp4% same path as in addresource!
&autoPlay=true% % optional configuration
&loop=true% % variables
}
]{}{VPlayer.swf}
请帮忙!
答案1
\includemedia
行为类似于\includegraphics
或类似于任何其他 TeX 框:它们一个接一个地放置。如果用空格分隔,则那些不适合当前文本行的框将移动到下一个,并\\
强制换行。
尝试以下方法:
\documentclass{article}
\usepackage[draft]{media9}
\begin{document}
\noindent Text before\\
\includemedia[width=50pt,height=50pt]{}{}\includemedia[width=50pt,height=50pt]{}{}\includemedia[width=50pt,height=50pt]{}{}\\
\includemedia[width=50pt,height=50pt]{}{}\includemedia[width=50pt,height=50pt]{}{}\\
Text after.
\end{document}