
異なるフラッシュ ムービーを含む 2x2 のサブフィギュアで構成されたフィギュアを作成したいと考えています。 1 つのフィギュアを使用する最も単純なケースでは、ムービーが左余白に表示されるため機能しません。 一方、サブフィギュアを使用すると、2 つのムービーが 2 つの異なる行の右余白に表示されます。 同じ行の中央に配置するには、どうすればよいでしょうか。
ありがとう、
ベンジャミン
\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
。ここでは、 CTAN パッケージcube.mp4
のコンポーネントmedia9
がデモンストレーションの目的で使用されています。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}