\flashmovie로 2x2 그림 패널을 만드는 방법은 무엇입니까?

\flashmovie로 2x2 그림 패널을 만드는 방법은 무엇입니까?

다양한 플래시 무비가 포함된 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.mp4CTAN 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}

관련 정보