
我想製作一個由包含不同 Flash 影片的 2x2 子圖組成的圖。最簡單的只有一張圖的情況不起作用,因為電影出現在左邊距。而如果我使用子圖,兩部電影會出現在兩條不同行的右邊距。我需要做什麼才能讓它們在同一條線上居中?
謝謝,
班傑明
\documentclass[12pt]{article}
\usepackage{lineno}
\usepackage{amsbsy}
\usepackage{graphicx,color,subfigure}
\usepackage{amsmath, bm}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{epstopdf}
\usepackage[english]{babel}
\usepackage[labelfont=bf,labelsep=period]{caption}
\usepackage[dvipdfmx]{media9}
\usepackage{flashmovie}
\addto\captionsenglish{\renewcommand{\figurename}{Supplementary figure}}
\begin{document}
\begin{figure}
\centering
{\flashmovie[engine=flv-player,width=160px,height=126px]{movie1.flv}}
\caption{Some caption text here.}
\end{figure}
\begin{figure}
\subfigure[subcaption 1]{\centering { \flashmovie[engine=flv-player,loop=1,width=160px,height=126px]{movie1.flv}}}
\subfigure[subcaption 2]{\centering { \flashmovie[engine=flv-player,loop=1,width=160px,height=126px]{movie2.flv}}}
\caption{Some caption text here.}
\end{figure}
\end{document}
答案1
該flashmovie
封裝沒有很好地編程,因為它引入了大量雜散空間,從而阻止插入的視訊盒正確對齊。
考慮使用該media9
包。右下影片範例使用player_flv_maxi.swf
與套件所用相同的視訊播放器組件flashmovie
。此處,cube.mp4
CTANmedia9
包用於演示目的。將其替換為movie[123].flv
需要的地方。
\documentclass[12pt]{article}
\usepackage{lineno}
\usepackage{amsbsy}
\usepackage{graphicx,color,subfigure}
\usepackage{amsmath, bm}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{epstopdf}
\usepackage[english]{babel}
\usepackage[labelfont=bf,labelsep=period]{caption}
%\usepackage[dvipdfmx]{media9}
%\usepackage{flashmovie}
\usepackage{media9}
\addto\captionsenglish{\renewcommand{\figurename}{Supplementary figure}}
\begin{document}
\begin{figure}
\centering
%\flashmovie[engine=flv-player,width=160px,height=126px]{movie1.flv}
\includemedia[
width=160px,height=126px,
addresource=cube.mp4,
activate=pageopen,
transparent,
flashvars={source=cube.mp4&scaleMode=letterbox}
]{}{VPlayer.swf}
\caption{Some caption text here.}
\end{figure}
\begin{figure}
\centering
\subfigure[subcaption 1]{\centering{%
%\flashmovie[engine=flv-player,loop=1,width=160px,height=126px]{movie2.flv}
\includemedia[
width=160px,height=126px,
addresource=cube.mp4,
activate=pageopen,
transparent,
flashvars={source=cube.mp4&loop=true&scaleMode=letterbox}
]{}{VPlayer.swf}%
}}
\subfigure[subcaption 2]{\centering{%
%\flashmovie[engine=flv-player,loop=1,width=160px,height=126px]{movie3.flv}
\includemedia[
width=160px,height=126px,
addresource=cube.mp4,
activate=pageopen,
flashvars={
flv=cube.mp4
&margin=0
&showvolume=1
&showstop=1
&showtime=1
&videobgcolor=0xFFFFFF
&loop=1
}
]{}{player_flv_maxi.swf}%
}}
\caption{Some caption text here.}
\end{figure}
\end{document}