media9 비디오가 내 슬라이드의 다른 항목을 이동하는 이유는 무엇입니까?

media9 비디오가 내 슬라이드의 다른 항목을 이동하는 이유는 무엇입니까?

이 MWE에는 슬라이드 1과 3에 나타나는 점이 있습니다. 슬라이드 2에서는 비디오가 나타나면 슬라이드 1에서 생성된 항목이 약간 움직입니다. 그런 다음 비디오가 사라지면 해당 위치로 돌아갑니다.

\documentclass[10pt,aspectratio=169]{beamer}
\usepackage{media9}
\begin{document}
\begin{frame}{Why do the dot points move on slide 2?}
        \begin{columns}
            \column{0.5\textwidth}
            \begin{itemize}
                \item Point 1
                \item Point 2
                \item<3-> Point 3
            \end{itemize}

            \column{0.5\textwidth}
            \only<2>{
            \includemedia[
            width=0.6\linewidth,
            height=0.4\linewidth,
            activate=pageopen,
            addresource=PLT/sig0700compare_short.MP4,
            flashvars={source=PLT/sig0700compare_short.MP4}
            ]{}{VPlayer.swf}}
        \end{columns}
\end{frame}
\end{document}

답변1

일반적으로 슬라이드 내용은 중앙에 맞춰 수직으로 정렬됩니다. 큰 개체를 추가하는 경우 공간이 필요하므로 세로 중앙에 정렬하려면 텍스트를 더 위쪽에서 시작해야 합니다.

일부 솔루션:

  • \visible예 를 들어 대신 을 사용하면 모든 슬라이드의 개체에 필요한 공간을 간단히 예약할 수 있습니다 \only.

\documentclass[10pt,aspectratio=169]{beamer}
\begin{document}
    \begin{frame}
      \frametitle{Why do the dot points move on slide 2?}
      \begin{columns}
          \begin{column}{0.5\textwidth}
          \begin{itemize}
              \item Point 1
              \item Point 2
              \item<3-> Point 3
          \end{itemize}
        \end{column}
        \begin{column}{0.5\textwidth}
          \visible<2>{
              \rule{.6\linewidth}{.4\linewidth}
          }
        \end{column}
      \end{columns}
    \end{frame}
\end{document}
  • 슬라이드 정렬을 전체적으로 \documentclass[t]{beamer}또는 개별 프레임에 대해 위쪽 정렬로 변경합니다 \begin{frame}[t]. 기둥의 경우 별도로 상단 정렬을 해야 합니다 \begin{columns}[T].

\documentclass[10pt,aspectratio=169]{beamer}
\begin{document}
    \begin{frame}[t]
      \frametitle{Why do the dot points move on slide 2?}
      \begin{columns}[T]
          \begin{column}{0.5\textwidth}
          \begin{itemize}
              \item Point 1
              \item Point 2
              \item<3-> Point 3
          \end{itemize}
        \end{column}
        \begin{column}{0.5\textwidth}
          \only<2>{
              \rule{.6\linewidth}{.4\linewidth}
          }
        \end{column}
      \end{columns}
    \end{frame}
\end{document}

[파일 없이는 테스트할 수 없으므로 비디오를 직사각형으로 대체했습니다.]

관련 정보