我正在使用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}